Cannot add lights to scene

Hi all!

What I am trying to do: I am trying to make a scene to control my lights. I have googled quite a bit, but I am at a loss of what to even search for at this point.

What works: I have successfully added three Yeelight smart bulbs to my scene and they work…

What does not work:…but I cannot add two of my other lights to the scene which are Sonoff switches. As far as I understand, they should be lights, since in the configuration, I specify device_class: light. I am guessing the problem is that they are just an entity and not a device?

My current workaround: The way I am currently working around this is that I have an automation which sets the scene and then also triggers the two Sonoff lights, however, I would prefer to have all 5 lights be part of the scene (mostly b/c of the apple watch app only showing me scenes and not automations).

Thank for any tips! I am happy to provide any additional information.

Relevant part of the config:

# Sonoff
sonoff: 
  devices: 
    1000xxxxxx: 
      devicekey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 
      device_class: light 
      name: Couch
      entity_id: sonoff.couch 
    1000xxxxxx:
      devicekey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  
      device_class: light 
      name: Armchair
      entity_id: sonoff.armchair
[...]
#Yeelight
yeelight: 
  devices: 
    192.168.1.11: 
      name: Kitchen 
    192.168.1.12: 
      name: Lamp 
    192.168.1.13:
      name: Bedroom

That work around seems like a lot trouble.

You can add entities to a scene, not just devices.

Chas

Hi @cthompgh , thanks for your message!

You can add entities to a scene, not just devices.

Is that possible through the UI, or do I have to edit some .yaml file? Because in the GUI, these two lights are not among the options (as opposed to the yeelights). Even if I try to search for light I simply get no devices matching that. See screenshot below:

I can do it through the UI

You can’t ?

Screenshot attached

Chas

I can do it through the UI
You can’t ?

I cannot. My page ends after the “Add a device” box and there is no “Entities” section at all. Do you have any idea what I can do about that?

Everything in my HA has the latest update… core, HAAC, supervisor, OS etc

Maybe you have an older version of one of the components ?

Chas

I’m running latest HA in docker on a Raspberry Pi 4 (info below). But I cannot see why this would be the reason that I can only add Devices and not Entities into scenes. Am I missing something? Is this functionality dependent on supervisor? I’m happy to provide any additional info.

Version 	core-2022.3.5
Installation Type 	Home Assistant Container
Development 	false
Supervisor 	false
Docker 	true
User 	root
Virtual Environment 	false
Python Version 	3.9.9
Operating System Family 	Linux
Operating System Version 	5.10.63-v7l+
CPU Architecture 	armv7l
Timezone 	Europe/Bern

Here’s yaml code of one of my scenes that has an entity

name: Basement West Light Turns OFF
entities:
switch.sonoff_10011f92ca:
manufacturer: SONOFF
model: S31
sw_version: PSC-B67-GL v3.5.0
local: online
rssi: -59
power: 8.15
current: 0.05
voltage: 125.3
icon: hass:lightbulb
friendly_name: Basement West Light
state: ‘off’
icon: mdi:lightbult

  • id: ‘1642626269589’

(This is of course without the required indentation)

Could you please put that in a code block? I am having trouble guessing the indentations. Thanks!

I don’t know.

I’m running Oracle VB on Windows 10

name: Basement West Light Turns OFF
  entities:
    switch.sonoff_10011f92ca:
      manufacturer: SONOFF
      model: S31
      sw_version: PSC-B67-GL v3.5.0
      local: online
      rssi: -59
      power: 8.15
      current: 0.05
      voltage: 125.3
      icon: hass:lightbulb
      friendly_name: Basement West Light
      state: 'off'
  icon: mdi:lightbult
- id: '1642626269589'
1 Like

Alright! Thanks to your help, I have manually edited the scenes.yaml and figured out a way to add the entities in such a way that they turn off. I will mark this as solved, but I still don’t understand why I cannot add any entities through the UI.

Thanks again and have a wonderful evening! :slight_smile:

1 Like

Hi,

Check the following link. It worked for me to get Entities back into the front end.

Cheers