So, I have a led strip that shows its color over the state attributes.
So i wanna sync a couple of them.
So far i’m able to get the color status, but I can’t find a code to check the status 5 seconds ago to se if it changed or not.
if it changes, it will send a assistant relay to google to change it to the same color.
value_template: "{{states.light.led_iana.attributes.color}}"
- id: light_sync
trigger:
- platform: state
entity_id: light.led_iana
to: (here I want it to check the last 5 seconds)
action:
- service: rest_command.assistant_relay
data:
message: change Pedro led light to "{{states.light.led_iana.attributes.color}}"
Thanks