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

Topic name components, magic?

$
0
0

@Hogbert wrote:

I have two sensors, B0004 and 8900012 and I get the data from topics

  - platform: mqtt
    name: "8900012"
    state_topic: "sensor/8900012/status"
    unit_of_measurement: 'C'
    value_template: "{{ value_json.value  }}"
  - platform: mqtt
    name: "B0004"
    state_topic: "sensor/B0004/status"
    unit_of_measurement: 'C'
    value_template: "{{ value_json.value  }}"

The json structure is similar for the topics.

I can see messages coming in in the mqtt listener/debugger.

However, I can not get the data into logic from the sensor B0004 unlike from the other one.

As I am a newbie both in MQTT and in HA, I’m running out of ideas here.

Only possiblity I can see is that there is some magic, maybe interpreting B0* as a binary number or something funny like that.

Any ideas? I can not change the topics in the sending system.

I browsed through the MQTT protocol specification but could not see any restrictions related to a problem like this.

My HA is of version 0.103.5

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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