Hello,
Is there a way to trigger a switch via ssh, cli, web, that i could config on a batch or a python to turn off or turn on a switch? or press a button, or call a service?
From win10
Thanks.
Hello,
Is there a way to trigger a switch via ssh, cli, web, that i could config on a batch or a python to turn off or turn on a switch? or press a button, or call a service?
From win10
Thanks.
Have a look at the API. I believe that is possible.
But I don’t really see a reason to do so.
Tried WebHooks? It’s easy to use with f.e. curl
But basically, all of the options you mentioned are possible…
took me a while to learnt the restapi, but i did it
what i was tryint go to do is a python code that turn off my monitors (via broadlink ir) and my PC when i press a button, so the python run: send command to turn off monitors and then shutdown pc
Seems like that could be done with HA alone.
My PC is like a switch in HA with WOL, but i think work by ping, so if the pc lost the ping, turn into a switch off, i tried that way but when the pc lost the ping all monitors shutdown