#how to make automatization

26 messages · Page 1 of 1 (latest)

foggy veldt
#

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

daring elbow
#

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?

foggy veldt
#

is that good?

daring elbow
#

I think I understand. Can you post what you have tried so far?

#

do your entities (watch, phone, etc) have those attribtes or states?

foggy veldt
#

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

steady pilot
#

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

foggy veldt
safe garnet
sonic flower
#

So you have nothing of that set up - neither script you're talking about, or any of entities with corresponding states?

foggy veldt
#

and what about the other part?

foggy veldt
#

bump

safe bramble
# foggy veldt 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

foggy veldt
#

how do i help you?

safe bramble
#

Post what you've tried

foggy veldt
#

ill post it right here right now

sonic flower
#

So nothing?

foggy veldt
sonic flower
#

How do you expect someone to help you, if you're not doing anything?
Help doesn't equal doing everything for you. 👍

shut stirrup
safe bramble
shut stirrup
#

Just visiting...