Hello,
I’m new on the forum, I hope I’m not in the wrong place
I am French and I use a translator, it can be that some things are confused
I switched to home assistant two days ago (after 2 years with jeedom)
I explain you my problem
I have a plug connected which manages my pc
except that if by accident we click on off everything stops
I would like to know if via automation / template can we create a plug / switch
with an On action and an Off action but with a condition : if the computer ping the off action is not executed
if the pc doesn’t ping action off executed
for schematization
action off -----> computer ping = do nothing
action off -----> computer does not ping = execute action off
for information my level in dev is not very high not to say almost inexistent.
I just know that the integration is done in the configuration.yaml file from what I understand
thank you in advance for your help
cordially and have a good end of year party