Replies: 1 comment 1 reply
-
It will never get a value as Optolink-Splitter will never send an mqtt message with .../compressor_running. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to adapt the vitocal.json from the wiki.
I want to define a binary sensor that tells me whether the compressor is running. My idea is to derive this from the compressor performance in %.
{ "domain": "binary_sensor", "name": "Compressor running", "icon": "mdi:pump", "payload_on": "1", "payload_off": "0", "value_template": "{{ \"1\" if states(\"sensor.vitocal_compressor\") | float > 0 else \"0\" }}" },
I tested the template in Home Assistent and it works fine, but not as mqtt topic. The binary sensor entity value in ha is "unbekannt".
Does anyone have an idea what the template should be?
Beta Was this translation helpful? Give feedback.
All reactions