Hi all,
Im fairly new to HA and have been playing with it over the last couple of weeks - i cant seem to put it down!
Basically, i have hyperion ambient lighting behind my TV which has a hdmi grabber and grabs the TV content. It is ALWAYS on. This causes my tv lights to go blue when i turn my set top box off. The set top box must have a blue default colour.
Using the hyperion component in Home Assistant, I got around this behavior by changing the default ‘on’ colour to black. So now, i can actually turn my lights off completely by switching the lights ‘on’ using the switch in HA, or by telling Alexa to " turn my tv lights on". It is most annoying.
This was an improvement but now, id like to reverse the behaviour, so when i switch the lights off in HA, they actually turn the lights on, but set them to black.
I have tried several approaches using scripts and automation, the closest one i have can be found below, where i use a zee light to test automation triggers to set my lounge to a different colour, just to check my automation is doing something.
My amazon echo controls most of my lounge using the emulated hue component, so eventually id like to group all my devices in the Alexa app, and say, ‘Turn my lounge off’ which would then trigger the automation to actually switch my lights on, but set them to the default colour to black.
`automation reverse off:
alias: Reverse off operation
trigger:
platform: state
from: ‘off’
to: ‘on’
entity_id: light.raspberrypi
action:
service: light.turn_on
entity_id:
- light.raspberrypi
data:
brightness: 150
rgb_color: [255, 0, 0]
automation reverse on:
alias: Reverse on operation blue
trigger:
platform: state
from: ‘on’
to: ‘off’
entity_id: light.raspberrypi
action:
service: light.turn_on
entity_id:
- light.raspberrypi
- light.living_room_lamp
data:
brightness: 150
rgb_color: [116, 209, 234]`
I know im not far off, any advice would be appreciated.
Thanks