Hello!
Disclaimer - very new to HA but I’ve found answers to many of my questions via the forum so thank you Not for the following one, though.
I have a Niko switch along with two hue bridges (reason for getting started with HA) and a bunch of philips hue lights. I want to turn on a series of lights via the switch, but have some difficulty getting an automation working correctly.
The Niko switches are discoverable by using the “hue sensor advanced” package as suggested here here
The action is a custom rest command because hue.hue_activate_scene doesn’t work for two bridges.
So far I have:
- id: '1587713344024'
alias: Turn living room lights on
description: ''
trigger:
platform: event
event_type: left_upper_release
event_data:
entity_id: remote.loungeswitch1
condition: []
action:
- data:
huegroupid: '7'
huesceneid: xxxx
service: rest_command.set_hue_1_scene
The action is working correctly when I program a “state” change in as action - however it is a little temperamental as the state needs to be “high” for a period before the action will fire - so when you push the switch often nothing happens. Setting “for: 00:00:00.5” doesn’t really help. Hence trying to use the event trigger. In the entities card you can see that the event registers perfectly every time so the problem is not here. Can anyone suggest what I’m doing wrong?
Thank you!