home-assistant.io icon indicating copy to clipboard operation
home-assistant.io copied to clipboard

Turn_off service not working

Open cowboysdude opened this issue 2 years ago • 6 comments

Feedback

The input_boolean.turn_on works perfectly but upon trying to run the input_boolean.turn_off service it does not toggle the boolean off as it should.

I have to use homeassistant.toggle to turn the input_boolean off

action:
    - service: homeassistant.toggle
      entity_id: input_boolean.out_of_bed
    - service: media_player.volume_set
      data:
        volume_level: 0.60
      target:
        entity_id: media_player.sonos_five
    - service: tts.cloud_say
      entity_id: media_player.sonos_five
      data_template:
        message: > 

Here is where I'm asking the boolean to turn off.... the only way it works is with homeassistant.toggle service. It seems that the input_boolean_turn_off service is not working.

URL

https://www.home-assistant.io/integrations/input_boolean/

Version

2022.9.2

Additional information

No response

cowboysdude avatar Sep 12 '22 10:09 cowboysdude

Hey there @home-assistant/core, mind taking a look at this feedback as it has been labeled with an integration (input_boolean) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

@cowboysdude Please include an example of what's not working for you.

emontnemery avatar Sep 13 '22 07:09 emontnemery

He may be having the same problem I am, I can call it in developer tools, and I can go directly to the entity and toggle it, but when I use a button on the dashboard it returns an entity id needed error.

gmcaesar avatar Sep 16 '22 22:09 gmcaesar

system info: Home Assistant 2022.9.4 Supervisor 2022.08.6 Operating System 9.0 Frontend 20220907.2 - latest

button yaml

type: custom:mushroom-template-card
primary: |-
  {% if is_state("input_select.kori_morning_routine", "wake up") -%}
    GOOD MORNING KORI
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "go to bathroom") -%}
    GO TO THE BATHROOM
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "change clothes") -%}
    GET DRESSED
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "make bed") -%}
    MAKE YOUR BED
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "eat breakfast") -%}
    EAT YOUR BREAKFAST
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "brush teeth") -%}
    BRUSH YOUR TEETH
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "good job") -%}
    GREAT JOB
  {%- endif %}
secondary: |-
  {% if is_state("input_select.kori_morning_routine", "wake up") -%}
    Lets Get Started
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "go to bathroom") -%}
    Go Pee
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "change clothes") -%}
    PJ's in the laundry or to your bed
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "make bed") -%}
    Make sure you tuck your sheets in and fold the blankets
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "eat breakfast") -%}
    Eat up timer started
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "brush teeth") -%}
    Go to The bathroom and brush your teeth
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "good job") -%}
    HAVE A GREAT DAY
  {%- endif %}
icon: |-
  {% if is_state("input_select.kori_morning_routine", "wake up") -%}
    mdi:alarm-check
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "go to bathroom") -%}
    mdi:toilet
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "change clothes") -%}
    mdi:tshirt-v
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "make bed") -%}
    mdi:bed-empty
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "eat breakfast") -%}
    mdi:table-chair
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "brush teeth") -%}
    mdi:toothbrush
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "good job") -%}
    mdi:star
  {%- endif %}
entity: input_select.kori_morning_routine
icon_color: |-
  {% if is_state("input_select.kori_morning_routine", "wake up") -%}
    blue
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "go to bathroom") -%}
    white
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "change clothes") -%}
    green
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "make bed") -%}
    red
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "eat breakfast") -%}
    teal
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "brush teeth") -%}
    green
  {%- endif %}
  {% if is_state("input_select.kori_morning_routine", "good job") -%}
    yellow
  {%- endif %}
fill_container: true
layout: vertical
tap_action:
  action: call-service
  service: input_select.select_next
  data: {}
  target:
    entity_id: input_select.kori_morning_routine
multiline_secondary: true
hold_action:
  action: none
double_tap_action:
  action: none
badge_icon: ''
picture: ''

also tried the same service call in a normal button card with no problems, but when I call this from the dev panel it works fine: service: input_select.select_next data: {} target: entity_id: input_select.kori_morning_routine

gmcaesar avatar Sep 17 '22 03:09 gmcaesar

@gmcaesar Your issue seems to be unrelated to this issue. Please don't stack different issues in a single report. Thanks 👍

frenck avatar Sep 17 '22 09:09 frenck

@frenck sorry, I thought it might be related, but on a double check it looks a bit different - I'll open my ticket in the frontend repo

gmcaesar avatar Sep 17 '22 15:09 gmcaesar

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 16 '22 16:11 github-actions[bot]