I am receiving an MQTT message with like this
/energenie/eTRV/Report/Diagnostics/296 {
"Motor current below expectation": false,
"Motor current always high": false,
"Motor taking too long": false,
"discrepancy between air and pipe sensors": false,
"air sensor out of expected range": false,
"pipe sensor out of expected range": false,
"low power mode is enabled": true,
"no target temperature has been set by host": false,
"valve may be sticking": false,
"valve exercise was successful": false,
"valve exercise was unsuccessful": false,
"driver micro has suffered a watchdog reset and needs data refresh": false,
"driver micro has suffered a noise reset and needs data refresh": false,
"battery voltage has fallen below 2p2V and valve has been opened": false,
"request for heat messaging is enabled": false,
"request for heat": false
}
The spaces in the keys are giving hass some problems decoding. I have tried
- platform: mqtt
name: "Office TRV Motor current below expectation"
state_topic: "/energenie/eTRV/Report/Diagnostics/296"
value_template: '{{value_json.Motor current below expectation}}'
payload_on: true
payload_off: false
But this gives an error
ERROR:homeassistant.bootstrap:The following platforms contain invalid configuration: binary_sensor.mqtt (please check your configuration)invalid template (TemplateSyntaxError: expected token 'end of print statement', got 'current') for dictionary value @ data['value_template']. Got '{{value_json.Motor current below expectation}}'. Please check the docs at https://home-assistant.io/components/binary_sensor.mqtt/
I have tried various combination of quotes, and replacing the spaces with \u0032, but havenāt had any success.
Does anyone know how to do this?