Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105563

MQTT sensor with special chars ("[")?

$
0
0

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):
grafik

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

Read full topic


Viewing all articles
Browse latest Browse all 105563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>