OpenSprinkler Forums OpenSprinkler Unified Firmware Use OpenSprinkler with Home Automation Server? Re: Re: Use OpenSprinkler with Home Automation Server?

#27628

Ray
Keymaster

BUT means:
– The OpenSprinkler shall react to requests from the HAS:
– – status-feedback (what is the current status, what are the current times?
– – action upon request (HAS sends “open valve X” and OpenSprinkler will act on that request)

These are already supported by the firmware, and is in fact how the mobile app communicates with the controller. Specially, statuses can be obtained using JSON (check this post for JSON commands: http://rayshobby.net/?p=8422), and actions are implemented using HTTP GET (http://rayshobby.net/?page_id=730#httpget).

Whenever the OpenSprinkler will switch a valve, there should be an IP package sent to The HA server (preferrably by UDP or http get/post to a website on the HA server)
– The OpenSprinkler shall react to requests from the HAS:

:
This is not supported currently. Obviously it requires knowing specifics of your HA server, what specific HTTP GET/POST command it should send, IP address or host name of the HA server. Since this is similar to how logging is implemented, it shouldn’t be too difficult to modify the software to do so.