I have been F****ng around with HASS for awhile today and can’t seem to get these two items to work.
First off is Alexa:
I just updated my Home Assistant OS and Core to the latest versions as of this posting, since then it seems as Alexa won’t work for TTS. Generally it does not error out but it doesn’t speak. This is driving me nuts and is blocking my automations from being setup.
I have already googled the hell out of this and no luck. I even tried tweaking the notify.py script with no success. I have since reverted to the original script.
Secondly, I am trying to get lights to flash during an alarm event. I use Lifx lights and also have Abode. No matter what I do, the light i’m testing with will only turn colors or “flash” very slowly (IE: change colors every few seconds).
Any help would be greatly appreciated, I can paste yaml if needed.
I’ve tried both the turn on + flash and pulse blink. My goal is to have the lights flash for the duration of the event and then return to normal. I setup a scene at the beginning to return the lights to the previous state. So far my testing on the one light isn’t going well enough to add others.
well, flash: long is a very slow flash. so if it works for you, just change that to flash: short. If you want an even faster flast, use lifx.effect_pulse.
if it doesn’t work at all, just use state for the motion sensor
- platform: state
entity_id: binary_sensor.downstairs_wx_motion
to: on
another benefit of lifx.effect_pulse is you don’t have to mess around creating scenes and restoring them. when the effect stops, the light will return to the way it was before the effect started.
edit: without a delay in your repeat section, the light.turn_on is getting called repeatedly without being given time to complete.
edit2: I would do it like this
- alias: Flash Lights
mode: single
trigger:
- platform: state
entity_id: binary_sensor.downstairs_wx_motion
to: on
action:
- repeat:
while:
- condition: state
entity_id: binary_sensor.downstairs_wx_motion
state: on
sequence:
- service: lifx.effect_pulse
target:
entity_id: light.gaming
data:
mode: strobe
brightness: 255
cycles: 5
period: 0.5
color_name: red
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 500
adjust cycles, period, and delay according to your needs.