A few HASS.IO updates ago, my MQTT sensors stopped working. MQTT itself is running for a switch and works fine but not for the sensors.
This is what I have in my configuration.yaml:
#MQTT Sensor - CPU Temperatur
sensor:
- platform: mqtt
name: "cpu_temp_rahmen"
state_topic: "frame/cpu_temp"
unit_of_measurement: '°C'
state_on: "ON"
state_off: "OFF"
availability_topic: "frame/cpu_temp/available"
payload_available: "online"
payload_not_available: "offline"
- platform: mqtt
name: "image_count_rahmen"
state_topic: "frame/images"
unit_of_measurement: 'Bilder'
state_on: "ON"
state_off: "OFF"
availability_topic: "frame/images/available"
payload_available: "online"
payload_not_available: "offline"
And this is the error message that I get:
2019-02-11 12:14:13 ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.mqtt]: [state_on] is an invalid option for [sensor.mqtt]. Check: sensor.mqtt->state_on. (See /config/configuration.yaml, line 60). Please check the docs at MQTT Sensor - Home Assistant
2019-02-11 12:14:13 ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.mqtt]: [state_on] is an invalid option for [sensor.mqtt]. Check: sensor.mqtt->state_on. (See /config/configuration.yaml, line 69). Please check the docs at MQTT Sensor - Home Assistant
Any idea what I may be doing wrong?