How to get RANDOM in Home Assistant - few alternatives
Ғылым және технология
Do you want to trigger random services? Or have random timers? This all can be done inside Home Assistant even without HACS or external components.
Documentation on Random:
www.home-assistant.io/integra...
00:00 - Intro
00:22 - Random
01:09 - Random Internal Integration
05:01 - Random in Templates
05:54 - Random service in automation
07:46 - Random TTS messages
09:26 - Final tips and thoughts
Don't forget to give this video thumb up if you liked it, subscribe if you still haven't and I'll see you next time!
Have fun!
Bearded Tinker
____________________________________________________________
👕☕Awesome merchandise? Sure - here it is!
▶ shop.beardedtinker.com/
____________________________________________________________
🧡 If you would like to support me and this channel, you can JOIN and become KZread channel member! 🙏 kzread.info...
____________________________________________________________
📣Follow me on other platforms📣
✅Twitter: @BeardedTinker
✅Instagram: @2BeardedTinker
✅Discord: / discord
____________________________________________________________
(*) if any, should indicate links that are affiliated links. They don't cost you anything extra but provide small income to get this channel going, and finance future projects I make.
#homeassistant
Пікірлер: 17
I think Jeff at SlackerLabs has some good random use in his Halloween automations. He sends random spooky sounds to random chromecast devices around the house. I want to use this to make random effects happen as a motion sensor sees kids come to the door then have a random cool-down period so that the same effects aren't triggered until after the group that triggered it has left. The effects can be turning on specific lights to highlight certain scenes, turning on the zombie-in-a-box, turning off lights and turning the valve on an ankle blaster, making creepy sounds.
@BeardedTinker
25 күн бұрын
That's great idea!!! Would love to see finished code!
Brilliant timing. My morning voice announcement always says "time to wake up" and i was wondering if there was a way to get it to randomly say different things instead and now here's your video 😂
@BeardedTinker
25 күн бұрын
Nice - glad I timed it right ;)
Having watched Home Alone as a child, I use randomness in a template to vary the time my house lights come on in the evenings and turn off at night when I'm away on vacation.
@BeardedTinker
25 күн бұрын
There is nice integration for that called Presence Simulation. It uses your actually device history to simulate your presence.
Just a random chance I found this!! Not really, I'm subscribed. Thanks for the creative solutions.
@BeardedTinker
25 күн бұрын
Thanks for the sub and for watching the video!!!
Do you use Node-RED at all? I am just looking how much easier some things, like random, are there. I have started with HA automation long time ago, then switched to Node-RED. Tried to come back to HA automation but no :D
@BeardedTinker
25 күн бұрын
Deleted it few years back - for me using NR defeats the purpose of HA., but yes, a lot of things can be done differently and/or easier there.
This is my totally random comment.
@BeardedTinker
29 күн бұрын
This is so random...
“Alexa, whose turn is it” is easily our most used Alexa triggered script alias: Random person sequence: - service: alexa_media.update_last_called data: {} - service: notify.alexa_media data: message: >- {% set options = { 3: 'Its jacks turn', 2: 'Its janes turn', 1: 'Its Jill’s Turn'} %} {{ options[(range(1, 4) | random)] }} data: type: tts target: "{{ states('sensor.last_alexa') }}" enabled: true mode: single
@BeardedTinker
25 күн бұрын
Nice one - loving the simplicity and see big potential here :)