I would like to receive MQTT sensor data in raw format and not json format. Is it possible? How do I do then?
I read the MQTT Sensor documentation and I assume that I should set the value_template
option to something clever but I do not get it.
In MQTT Explorer I see the following:
which I would like to catch as a sensor configured like this today (does not work though):
- platform: mqtt
name: "Sovrum"
state_topic: "Byvallen/sovrum_temp"
unit_of_measurement: '°C'
device_class: "temperature"
icon: mdi:home-thermometer
force_update: true
I assume I need to add the value_template
but I don’t know how.
Someone who has any idea?