Recently moved over from Samsung Smartthings and much preferring HA.
I have a question about the best approach to do something.
I have a raspberry pi which controls a device, by calling a rest endpoint with one of 3 commands. e.g. http://host/device/on, http://host/device/off, http://host/device/cancel
I would like an automation that runs at a certain time that calls the “on” endpoint, waits for a number of seconds and then calls the “off” endpoint.
I would also like to be able create a button group to use this too and ideally use it via voice input too.
Any suggestion on how to do this would be great.
Thanks in advance.
Jonathan