Good Morning everybody,
im using Hydrosys4 with the board, since 1.5 years, and it was just fine.
now im using HomeAssistant almost for everything at home, and i would like to controll the irrigation from inside the HomeAssistant, just like a normal Light or Relay imput.
i know is possible with Hydrosys4, but i dont know how.
right now i have a RASP 0 WH connected with the irrigation HAT and 4board relay.
and i have another RPI4 with my HomeAssistant server, that has MQTT Mosquito activated and ready to go... just need to setup something on the Hydrosys RPI Zero.
any suggestion or guide?
Thank you
This implementation is amazing!!!! thank you!!
I'm a one version behind with Hydrosys software, but i've been able to get the entities in to Home Assistant via an external MQTT broker.
I'll probably update to the very latest version of Hydrosys tonight to get any bug fixes etc.
Thanks again.
Home assistant integration has been implemented in the latest release, see the following post:
https://wordpress.com/post/hydrosysblog.wordpress.com/2987
Amazing Angelo, i will try and let you know the results.
ok, so the idea is to use the HTTP request that actually are already working in the setting page to activate the actuators connected to the Hydrosys4. As understood these requests can be easily generated by Home Assistant, then the only issue remaining is to allow the requested to be executed even if there is no login to the hydrosys4.
Clearly this poses a security issue, but it can be controlled if the objects are inside the same private network.
There is no setting to avoid the login, but it is quite easy to change the code to allow access only to some commands.
If you take the SD card, follow the path "home/env/autonom" , you enter in the file "start.py" and search for the following procedure "def doit():"
then put the "#" in front of the code as indicated in the below text:
def doit(): #if not session.get('logged_in'): # ret_data = {"answer":"Login Needed"} # return jsonify(ret_data)
Effectively you can now use Home Assistant to command the actuators in the Hydrosys4 SW.
Thank you Angelo..
IS there any way to DISABLE the LOGIN PAGE ?
i need it to perform some test...
thank you
Hello,
Unfortunately the current SW is not able to get commands from outside, like for example using the MQTT.
Currently with MQTT is possible to get sensor reading and to send commands from the Hydrosys4 SW.
Regards,
Angelo