Unable to turn off all switches off in a group

So im on 0.35.3 and am all of a sudden getting an issue when attempting to use the group switch to turn off all switches within a group. THis is also messing with my automations using said groups. Being on 0.34.x before did not bring up this issue.

The only error in the log when attempting to toggle the switch is the below.

homeassistant.core: Unable to find service binary_sensor/turn_off

Any ideas here? Should i just save all my configs, automations etc and reinstall from scratch?

It would help if you posted the automation in question, without which people can only really guess what you’re doing :wink:

Also the group config.

Derp moment, sorry guys. Funny thing is i have seen ppl do the same thing i did in my initial posting and apparently that learning moment didnt stick haha. Ok so there are two scenarios with one thing in common. I pasted the whole group at the bottom but gave the tidbit of the relevant group in SCENARIO 1

My automations are in individual yaml files within an automations folder.

SCENARIO 1

The switch for group below gets turned on and all entities turn on as designed. However, If i toggle the group switch to OFF then all actual items turn off but the switch on the application shows still on ONLY for the dimmers in the group. When i check the log i get the error mentioned in my original posting. The below group is in a single group yaml on the main directory (/home/hass/.homeassistant)

Group
masterbedroom:
name: Master_Bedroom
icon: mdi:hotel
view: no
entities:
- binary_sensor.masterrightclosetdoor
- switch.intermatic_ha05c_lamp_screw_in_module_switch_2_0
- light.ge_45606_2way_dimmer_switch_level_5_0
- light.act_zdp100_plugin_lamp_module_level_3_0
- media_player.master_bedroom


SCENARIO 2

Sunset based automation for dimmers outside. It does not trigger the dimmers to turn on. nor does my time based automation turn them off. Both below.

SUNSET AUTOMATION
alias: ‘Turn on outside lights at sunset’
hide_entity: True
trigger:
platform: sun
event: sunset
action:
service: light.turn_on
entity_id: group.outside

TIMEBASED AUTOMATION

  alias: 'Turn off outside lights at specific time'

hide_entity: True
trigger:
platform: time
after: ‘01:30:00’
action:
service: light.turn_off
entity_id: group.outside

GROUP
raspberrypi:/home/hass/.homeassistant# cat groups.yaml

Group Configuration yaml

default_view:
name: Main
view: yes
entities:
- sun.sun
- device_tracker.highfi13g_jfsphone
- device_tracker.mirandafolkmannsanchez_mirandasphone
- sensor.yr_symbol
- climate.hallway
- group.outside
- camera.north_carolina
- camera.east_coast
masterbedroom:
name: Master_Bedroom
icon: mdi:hotel
view: no
entities:
- binary_sensor.masterrightclosetdoor
- switch.intermatic_ha05c_lamp_screw_in_module_switch_2_0
- light.ge_45606_2way_dimmer_switch_level_5_0
- light.act_zdp100_plugin_lamp_module_level_3_0
- media_player.master_bedroom
masterbathroom:
name: Master_Bathroom
view: no
entities:
- switch.aeotec_dsc06106_smart_energy_switch_switch_4_0
- sensor.aeotec_dsc06106_smart_energy_switch_power_4_4
- sensor.aeotec_dsc06106_smart_energy_switch_power_4_8
perimeter:
name: Perimeter_Sensors
view: no
entities:
- binary_sensor.kitchenoutsidedoor
- binary_sensor.kitchenbasementdoor
- binary_sensor.diningroomwindow1
- binary_sensor.diningroomwindow2
- binary_sensor.librarywindow1
- binary_sensor.librarywindow2
- binary_sensor.librarywindow3
- binary_sensor.basementoutsidedoor
- binary_sensor.basementwindow
- binary_sensor.apartmentkitchenwindow
- binary_sensor.apartmentsidewindow
insideperimeter:
name: Inside_Perimeter
view: no
entities:
- binary_sensor.kitchenbasementdoor
- binary_sensor.basement2aptdoor
office:
name: Office
view: no
entities:
- media_player.office
- light.plugin_dimmer_level_24_0
gym:
name: Gym
view: no
icon: mdi:weight
entities:
- media_player.gym
- binary_sensor.gymclosetdoor
- light.linear_wd500z1_wall_dimmer_switch_level_6_0
- switch.aeotec_zw080_siren_gen5_switch_7_0
kitchen:
name: Kitchen
icon: mdi:kitchen
view: no
entities:
- media_player.kitchen
- climate.hallway
- light.ge_45606_2way_dimmer_switch_level_10_0
- light.ge_45606_2way_dimmer_switch_level_11_0
library:
name: Library
icon: mdi:book
view: no
entities:
- media_player.library
- light.intermatic_ha03wd_lamp_module_level_8_0
- light.intermatic_ha03wd_lamp_module_level_14_0
- binary_sensor.librarywindow1
- binary_sensor.librarywindow2
- binary_sensor.librarywindow3
outside:
name: Outside
view: no
entities:
- light.ge_45606_2way_dimmer_switch_level_9_0
- light.ge_45606_2way_dimmer_switch_level_10_0
- light.linear_wd500z1_wall_dimmer_switch_level_21_0
diningroom:
name: Dining_Room
icon: mdi:fork
view: no
entities:
- media_player.dining_room
- binary_sensor.diningroomwindow1
- binary_sensor.diningroomwindow2
- switch.leviton_unknown_type1805_id0334_switch_25_0
familyroom:
name: Family_Room
icon: mdi:sofa
view: no
entities:
- media_player.living_room
- light.ge_45606_2way_dimmer_switch_level_12_0
- switch.intermatic_ha05c_lamp_screw_in_module_switch_13_0
downstairs:
view: yes
name: Downstairs
entities:
- group.Kitchen
- group.FamilyRoom
- group.Outside
- group.Library
- group.DiningRoom
- group.GuestBathroom
upstairs:
view: yes
name: Upstairs
entities:
- group.MasterBedroom
- group.MasterBathroom
- group.Office
- group.BabyRoom
- group.Gym
- group.GuestBathroom
basement:
view: yes
name: Basement
entities:
- group.lowerlevel
- group.Apartment
lowerlevel:
name: Basement
view: no
entities:
- light.linear_wd500z1_wall_dimmer_switch_level_21_0
- binary_sensor.basementwindow
- binary_sensor.basementoutsidedoor
- binary_sensor.basement2aptdoor

Apartment:
view: no
name: Apartment
entities:
- binary_sensor.apartmentkitchenwindow
- binary_sensor.apartmentsidewindow
- binary_sensor.basement2aptdoor

audio.all:
name: Home_Audio
view: yes
icon: mdi:speaker
entities:
- media_player.dining_room
- media_player.downstairs
- media_player.everywhere
- media_player.kitchen
- media_player.living_room
- media_player.library
- media_player.office
- media_player.gym
- media_player.master_bedroom
security:
name: Security
view: yes
icon: mdi:security-home
entities:
- switch.aeotec_zw080_siren_gen5_switch_7_0
- automation.perimeter_away_alarm
- automation.perimeter_night_alarm
- group.perimeter
- group.insideperimeter

You can’t turn off something that’s not a switch with switch.turn_off. You’re trying to turn off a group :wink:

Try homeassistant.turn_off instead.

2 Likes

Ahh ok that logic makes sense. The automation might have been exhibiting the same behavior prior to updating hass to latest version and i just missed it. Thank you for that knowledge. :smile:

Now, do we have any theories for the master bedroom group switch not turning off certain entities in the UI even though the actual switches and dimmers do turn off? This is affecting the dimmers. Switches turn off correctly in the UI. The first time i toggle the below happens, If i toggle the group switch again it does turn toggle the entity switch off for the ones that were not switched off the first time i toggled said group switch

UPDATE: The “homeassistant.core: Unable to find service binary_sensor/turn_off” error is related to the door sensor. Since there is no binary sensor service to turn it off it turns up an error so this is a NABWAD matter. However the switches showing as on after toggling the group switch issue is still a mystery. :expressionless:

1 Like

That’s ok, the documentation there seems to be lacking because I found that one the hard way too.

As for the UI, I’ve not seen that but I don’t have dimmers yet. It’ll probably be worth starting a fresh topic on that, just so it gets noticed.

Sounds like a plan. Thank you Tinkerer!

When I try homeassistant.turn_off and apply it to group.living_room it does not work. I see it make the call, but the lights do not turn off. I have the group configured correctly.