bhyve-home-assistant
bhyve-home-assistant copied to clipboard
Python Script Error bhyve_next_watering
Describe the bug when calling the script in HA via developer tools page with << service: python_script.bhyve_next_watering data: {entity_id: switch.beet_zone, switch.rasen_seite_zone, switch.tropfbewasserung_zone, switch.rasenflache_zone}
I get an error (see log below)
Expected behaviour creates or updates entities named sensor.{zone_name}_next_watering and sensor.{device_name}_rain_delay_finishing.
BHyve devices Bhyve Indoor 4 zones
Logs
Logger: homeassistant.components.python_script.bhyve_next_watering.py Source: core.py:1041 Integration: Python Scripts (documentation, issues) First occurred: 18:00:42 (3 occurrences) Last logged: 18:08:47
Error executing script: Invalid entity id encountered: sensor.garten_bewässerung_rain_delay_finishing. Format should be
I suspect the issue is the ä
character being invalid for HA entities. I don't have plans to fix this anytime soon due to time, perhaps you could submit a small change via a PR?
I removed the character. The script runs now. However, the sensor values calculated by the script, do not match to the values calculated within the b-hyve app and do not fit to the runtime of the programs for the zones. Any hint what I can do?