I have the following script for the night of new years eve, which is working (almost fine). It turns off all the lights and switches I want and after a while it turns them on. The problem is that
it turns off the lights (one by one) so it is taking 2-3 seconds in order to turn them off (I would like to happen at once) and there is a delay also (8-9 seconds) to turn them on.
Ideally I would like to turn off all of them at once and to turn on the lights after 2-3 seconds at most. Not a big problem but is there something I could to to improve the speed?
Home Assistant sends a separate command to control each one of the 24 entities in the scene you have defined.
The only way to reduce the number of transmitted commands is to take advantage of native ZigBee or Z-Wave groups (not Home Assistant’s Groups). For example, a single Zigbee group command can control multiple devices (thereby reducing communication traffic and improving device responsiveness). Z-Wave has a similar capability as do some other technologies (Insteon, UPB, etc).