Hi
I have a ‘smart’ water heater which I’ve created my own python script to turn on/off and get its state. (currently no component, I might add it if everything works fine)
The python script does accepts ‘time’ as an argument (i.e. control.py -m turn_on -t 15)
Currently I’ve created 3 different switched, each with its own ‘time’ hard coded in the ‘turn_on’ command arguments.
I want to be able to do 2 more things
To be able to call it from REST api with dynamic time (should I create shell_command for that? how can it get the argument?)
To be able to add only 1 switch with ‘time’ as argument, similar to brightness in lights.