Hello, I have integrated the sensors and switches into my Home assistant setup. It is working fine now.
I have two questions:
Sensors doesn`t show up as statistic sensors when using the statistics card in HA. I believe there has to be added a valid state class line to the sensor configuration which Hydrosys is exporting to HA. See here: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
When I am restarting HA, the sensors/switches from hydrosys is losing connection, and I need to open Hydrosys and resend the configuration to HA. Is this a known problem?
Thank you for a great application, I have been using it in my greenhouse for three years now.
If possible I would prefer an auto update feature, to always keep it up to date.
Hello, where can I find these files?
For statistics, I also used InfluxDB and Grafana integration in HA. A bit of a learning curve but it works. You can also use the history-graph card which gives you a nice graph:
I also would have one request which would be to add a "force_update" but not certain if it should be done in Hydrosys or HA
force_update boolean (optional, default: false)
Sends update events even if the value hasn’t changed. Useful if you want to have meaningful value graphs in history.
Here's the info from HA:
In an ideal scenario, the MQTT device will have a state_topic to publish state changes. If these messages are published with a RETAIN flag, the MQTT switch will receive an instant state update after subscription, and will start with the correct state. Otherwise, the initial state of the switch will be unknown. A MQTT device can reset the current state to unknown using a None payload.
Hello,
Thanks for the feedback,
for the point 1) I was not aware of it, when I have time I'll have a look at it.
point 2) I notice the issue when I got a power outage. After some research I understood that the setting made using mqtt are a sort of volatile, so they cannot be stored permanently. Have to say this is quite disappointing, so far I have not found a way to solve the issue.