Hi,
I am trying to add a MQTT based sensor through configuration file as follows:
-sensor:
- state_topic: hzg/status
name: "ow_t_out"
unique_id: hzgowtout.mqtt
unit_of_measurement: "°C"
device_class: "temperature"
force_update: true
value_template: '{{value_json.onewire.t_out[0]}}'
When using MQTT explorer the message in MQTT looks like this (sorry only screenshot):
When checking on the dashboard the sensor says “Unknown”.
I somehow guess it is because of the brackets (‘[’ and ‘]’), am I right?
How can I enter the sensor in the .yaml file so it gets recognized properly?
Thanks!
/KNEBB
3 posts - 3 participants