I know, this is obnoxious for those that are NBA fans and not Sacramento Kings fans but I'm trying to figure out an automation that will change my Govee strip LED lights purple when the Sacramento Kings win (light the beam) and then reset back to white the next day. Not sure if it is even possible. I would suspect I would have to monitor some sort of NBA feed to see when a final score pops up and then update the color based on if they win or lose. Any help in pointing me in a direction to figure this out is greatly appreciated.
#Light the Beam
1 messages · Page 1 of 1 (latest)
With something like https://github.com/vasqued2/ha-teamtracker, this is entirely doable.
Thanks for the help!
So I thought I had it setup right but for some reason when the Team Winner value turned true at the end of game, the automation did not trigger. Here is a quick snapshot of the trigger. Maybe I set it up wrong? I watched the value change on the entity.
Can you show what the entity and attribute look like in dev tools > states. I’m thinking the null/true are wrong and should be “on” and “off”.
You can see the "team winner" is true. I'm not sure how long that stays that way. I suspect for 24 hours, then it will go null. It was previously null.
Sorry, I just realized you asked for a snapshot of the values in Devtools-States. Here you go.
And here is the automation in yaml form:
id: '1730928443375'
alias: Light the Beam
description: ''
trigger:
- platform: state
entity_id:- sensor.sacramento_kings
attribute: team_winner
to: 'true'
from: 'null'
condition: []
action:
- sensor.sacramento_kings
- action: light.turn_on
metadata: {}
data:
color_name: purple
target:
device_id: 99d6eae7d6587cee3ea84205300a797d - action: light.turn_on
metadata: {}
data:
color_name: purple
target:
device_id: dcaf4678de88342fd9e503d73757ab9b
mode: single
Just do from: "off" and to: "on". That should do it.
Since those are boolean attributes, on and off should be fine.
I went into the dev tools and changed the team winner value to null. I then went and changed the attribute values in the automation trigger to off and on and saved those changes. I then went back into devtools->state and changed the winner team value to true. That should trigger the automation, right? It do not in this case.
I really appreciate you trying to help by the way.
Some more info, if I manually run the automation it turns the light on and purple, even whem the team winner value is null. It's like it doesn't care.
Installed version of HA is 2024.9.1