I am trying to setup an MQTT text sensor to receive text from an MQTT json file but I’m not getting too far due to this error message! Has anyone come across this one? Maybe there is a better way to receive text from the json?
Yeap that right there is no text
but
you need to do something like
- name: "Lounge DIM"
state_topic: "stat/Lounge/RESULT"
value_template: "{{value_json['Dimmer'] }}"
get MQTT Explorer it let you see all the mqtt meagaes in a tree format
if there no json data then
- name: "Lounge Fan Status"
state_topic: "home/lounge-fan"
get MQTT Exporer
Thanks, for some reason I was having trouble with text readings and using a standard sensor, so I tried using the mqtt ‘text sensor’ ( MQTT Text - Home Assistant) which I could not get to work. I have gone back to a normal sensor and now it’s working. go figure.
- name: “Wind Direction - Compass”
state_topic: “home/weather_station”
value_template: “{{ value_json.wind_direction_compass }}”