It would be great to have some basic support for event scripting on the Pi version. I imagine a very simple system where there is folder on your Pi where you can place some (py or js) scripts with predefined names like on_station_change.py or something like that. Then whenever a sprinkler changes state, this script is called (if it is there) with some relevant parameters. That way you can do you own thing like contacting other systems. I don’t like IFTT as it is too rudimentary and I don’t want to have to expose my internal domotica systems to the cloud.
Also, on top of that, these scripts could return commands for OS as well so you can actually change the behaviour of the system.
Having such a simple event system opens up a lot of interesting integration possibilities and can be extended when needed.
Some ideas:
on_station_change
on_before_schedule_start
on_schedule_start
on_schedule_end
on_rain_level_change
on_flow_level_change
on_all_stop
etc
etc
I’m not a c-developer (just javascript/python) but I’d love to team up with someone who is to make this work. I’m sure this wouldn’t be too hard to implement and would be such a great enhancement.
Cheers,
Danny