how do i make a home assistant automatization that if something is true im not sleeping, detected on my galaxy watch 4 and my phone isnt on do not disturb it plays a sound for 10 seconds if those are still true but my phone is on do not distrub my watch will vibrate for 10 seconds the something that would be is a headless script that runs every 30 minutes on my debian server and detects an emoji on a given website
#how to make automatization
26 messages · Page 1 of 1 (latest)
hi @foggy veldt im not sure I fully understand your goal. Can you try and describe the logic again? like:
Not sleeping AND watch not detected AND phone NOT on do not desturb THEN play sound?
What have you tried so far? Can you share the YAML?
not sleeping (detected on watch) and phone not on do not disturb and if script output is true then play sound if do not disturb is true and not sleeping (detected on watch) and if script output is true vibrate watch for 10 seconds
is that good?
I think I understand. Can you post what you have tried so far?
do your entities (watch, phone, etc) have those attribtes or states?
i havent really tried anything, i dont know how to tell you if i have entries because i dont even know, i think the first step is making a headless script that detects an emoji on my debian server that runs every 30 minutes but i dont have any idea how to do that
imo, you'd want to walk it as logically as possible. i.e. You're only ever triggering when the webscript output is true, so use that as your trigger (assuming you've tied that to HA via MQTT or something), then if that is true you check if your watch thinks you're sleeping, since again you always want that to be false, those are two easy bail out conditions. Lastly, it's an action step, if on DND, then do vibrate, else play sound
I dont know how to make the Linux script
#1284966582375813201 can help with scripts, at least if you explain more
So you have nothing of that set up - neither script you're talking about, or any of entities with corresponding states?
and what about the other part?
bump
My guy, you're going to need to help us help you, right now it looks like you want us to do it all
how do i help you?
Post what you've tried
ill post it right here right now
So nothing?
yeah
How do you expect someone to help you, if you're not doing anything?
Help doesn't equal doing everything for you. 👍
wtf, you're here too?
Just visiting...