ioBroker / ioBroker.hass

Connects Home Assistant to ioBroker
https://www.home-assistant.io/
MIT License
24 stars 15 forks source link

Rainbird Integration throws an error #79

Open kaeptnkessl opened 1 year ago

kaeptnkessl commented 1 year ago

Describe the bug
Since there is no working adapter for the Rainbird irrigation system and there is an integration in Home Assistant avaliable, I'm using the hass adapter to get my Rainbird irrigation system to work in IOBroker. The irrigation system works, but I get an error like:

Bildschirmfoto vom 2023-06-13 20-56-05

The Readme has a chapter about the stringified JSON, but the "Allowed field keys" are empty in the log. So I am not able to create a correct stringified JSON value.

To Reproduce
Steps to reproduce the behavior: I'm using a blockly script for starting and stopping the irrigation of a specific zone.

I am aware, that the JSON value is incorrect, but the error doesn't tell me the correct field key!

Expected behavior
Two options:

  1. The error yields the correct field key.
  2. Since the toogle object represents the switch behaviour in Home Assistant, it would be nice, if we had an button object. That would reduce the complexity of the script.

Screenshots & Logfiles
_2023-06-13 20:34:27.323 - error: hass.0 (15684) Cannot control hass.0.entities.switch.rain_bird_sprinkler_4.turnon: true 2023-06-13 20:34:27.334 - warn: hass.0 (15684) Please make sure to provide a stringified JSON as value to set relevant fields! Please refer to the Readme for details! 2023-06-13 20:34:27.334 - warn: hass.0 (15684) Allowed field keys are:

Versions:

Apollon77 commented 1 year ago

Please enable Debug log and add a full Debug log hiere frommadapterstart until such an try. Seems I need to check meta data

kaeptnkessl commented 1 year ago

Here is the log. The error did not occur this time. I hope that helps anyway. I'll leave the debug log for the Home Assisstant turned on. As soon as the error occurs again, I'll post the log here.

edit: removed the log file, will provide a new one

Apollon77 commented 1 year ago

Sooo it works but sometimes not?

kaeptnkessl commented 1 year ago

I was able to reproduce the error. Here is the log. It seems, that the error only occurs, when I turn on and off the irrigation in short intervalls of time.

irrigation_iobroker_hass_2.log