2022 Oct 17, 11:22 AM
(2022 Oct 15, 05:07 PM)dan Wrote:Thanks Dam!! Very usefulĀ informationĀ(2022 Oct 15, 02:12 PM)pedrosantos009 Wrote: Hi Dan and all community,
It is possible to manual turn on/off a valve from a plug-in?
If yes when I turn on/off any valve a signal is realize to another plug-ins?
Thanks,
Pedro Santos
Hi Pedro.
Yes, it possible to manually turn on or off a station from a plugin.
You can use the http GET request. See #3 in the SIP http reference for details:
https://raw.githubusercontent.com/wiki/D...mmands.pdf
The code that actually handles the request is in the webpages.py module line 402. (class get_set_station())
SIP uses the Python Blinker module to send signals that plugins can use. They are "stations_scheduled" and "zone_change ".
Documentation for the Blinker module are at:
https://blinker.readthedocs.io/en/stable/
There is an updated version of gv_refreence.txt that has more information:
Pedro Santos
Pedro