You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed on the openHAB forum the only problematic issue left I am currently seeing is the HA required Python capitalised Booleans convention in value templates, which are currently failing, i. e.
Only working in Home Assistant: “val_tpl”: “{% if value_json.get(‘unlocked’) is true -%}True{%- else -%}False{%- endif %}”
as this currently does not work in openHAB, but making them lower case breaks it in Home Assistant.
Only working in openHAB: “val_tpl”: “{% if value_json.get(‘unlocked’) is true -%}true{%- else -%}false{%- endif %}”
Having the former also work in openHAB would nicely remove the need to have a separate setting for openHAB adjusted Home Assistant MQTT discovery.
Thanks
The text was updated successfully, but these errors were encountered:
As discussed on the openHAB forum the only problematic issue left I am currently seeing is the HA required Python capitalised Booleans convention in value templates, which are currently failing, i. e.
Only working in Home Assistant:
“val_tpl”: “{% if value_json.get(‘unlocked’) is true -%}True{%- else -%}False{%- endif %}”
as this currently does not work in openHAB, but making them lower case breaks it in Home Assistant.
Only working in openHAB:
“val_tpl”: “{% if value_json.get(‘unlocked’) is true -%}true{%- else -%}false{%- endif %}”
Having the former also work in openHAB would nicely remove the need to have a separate setting for openHAB adjusted Home Assistant MQTT discovery.
Thanks
The text was updated successfully, but these errors were encountered: