MQTT is Listening (I think) but not parsing as a sensor

@ petro
@ mobile.andrew.jones
@ wmaker

I don’t want to hijack @ parabag’s thread ( How to template MQTT sensor JSON as entity + attributes - Configuration - Home Assistant Community (home-assistant.io)), but I am having the same issue with a templating providing an “unknown” return.

Background:
This is my first MQTT implementation and I am pushing a steep learning curve here. I have my Vantage Pro 2 pushing data via a WifiLogger2 . I see it’s MQTT IP data stream at the Home Assistant Add-on: Mosquitto broker, but the integration does not seem to be picking it up.

Screenshot of the core-mosquitto listener:


So the data appears to be received by the broker.

The MQTT “talker” is transmitting three strings, /weather/realtime.txt, /weather/wflexpj.json and /weather/wflexp.json/. I am attempting to use /weather/wflexpj.json.

The contents of /weather/wflexpj.json is: {"stnname":"WiFiLogger","stnmod":16,"ver":3.15,"mac":"8C:4B:14:DA:26:C4","apmac":"8C:4B:14:DA:26:C5","ip":"192.168.9.237","ssid":"Asylum","rssi":-51,"wifimod":0,"lastboot":1663225364,"uptime":13561,"wflver":"2.41","loctime":1663224510,"utctime":1663238910,"tzone":10,"units":4,"conlati":424,"conlongi":-715,"wfllati":42.4911995,"wfllongi":-71.5729294,"tempout":"54.5","humout":"80","tempin":"81.1","humin":"40","windspd":"0.0","winddir":"229","windavg2":"0.0","windavg10":"0.2","gust":"6.0","gustdir":"265","bar":"30.023","bartr":"60","dew":"48","cdew":"48.5","chill":"55","heat":"55","thsw":"---","uv":"---","solar":"---","rainr":"0.00000","storm":"0.00000","rain15":"0.00000","rain1h":"0.00000","raind":"0.00000","rain24":"0.00000","rainmon":"2.89000","rainyear":"20.19000","etday":"0.000","etmon":"0.00","etyear":"0.00","xt":["---","---","---","---","---","---","---"],"xlt":["---","---","---","---"],"xst":["---","---","---","---"],"xh":["---","---","---","---","---","---","---"],"xsm":["---","---","---","---"],"xlw":["---","---","---","0"],"bat":"4.67","trbat":"0","foreico":"6","forrule":"75","sunrt":"6:26","sunst":"18:56","hlbar":["29.882","30.024","0:37","6:47","30.288","29.644","30.733","28.983"],"hlwind":["---","6.0","---","6:28","18.0","---","32.0","---"],"hltempin":["81.1","83.7","6:45","0:00","88.3","65.0","88.3","60.0"],"hlhumin":["40","44","6:39","2:35","67","37","73","19"],"hltempout":["54.6","63.6","6:45","0:00","89.0","49.0","97.0","0.0"],"hlhumout":["80","89","6:44","6:00","98","34","98","15"],"hldew":["49","59","6:39","2:20","70","46","78","-15"],"hlchil":["55","---","5:40","---","---","49","---","-3"],"hlheat":["---","64","---","0:00","91","---","107","---"],"hlthsw":["---","---","---","---","---","---","---","---"],"hlsolar":["---","0","---","---","0","---","0","---"],"hluv":["---","0.0","---","---","0.0","---","0.0","---"],"hlrainr":["0.000","0.000","---","---","2.460","---","4.610","---"],"hlxt0":["---","---","---","---","---","---","---","---"],"hlxt1":["---","---","---","---","---","---","---","---"],"hlxt2":["---","---","---","---","---","---","---","---"],"hlxt3":["---","---","---","---","---","---","---","---"],"hlxt4":["---","---","---","---","---","---","---","---"],"hlxt5":["---","---","---","---","---","---","---","---"],"hlxt6":["---","---","---","---","---","---","---","---"],"hlxh0":["---","---","---","---","---","---","---","---"],"hlxh1":["---","---","---","---","---","---","---","---"],"hlxh2":["---","---","---","---","---","---","---","---"],"hlxh3":["---","---","---","---","---","---","---","---"],"hlxh4":["---","---","---","---","---","---","---","---"],"hlxh5":["---","---","---","---","---","---","---","---"],"hlxh6":["---","---","---","---","---","---","---","---"],"hlxst0":["---","---","---","---","---","---","---","---"],"hlxst1":["---","---","---","---","---","---","---","---"],"hlxst2":["---","---","---","---","---","---","---","---"],"hlxst3":["---","---","---","---","---","---","---","---"],"hlxlt0":["---","---","---","---","---","---","---","---"],"hlxlt1":["---","---","---","---","---","---","---","---"],"hlxlt2":["---","---","---","---","---","---","---","---"],"hlxlt3":["---","---","---","---","---","---","---","---"],"hlxsm0":["---","---","0:00","---","---","---","---","---"],"hlxsm1":["---","---","0:00","---","---","---","---","---"],"hlxsm2":["---","---","0:00","---","---","---","---","---"],"hlxsm3":["---","---","0:00","---","---","---","---","---"],"hlxlw0":["---","---","0:00","---","---","---","---","---"],"hlxlw1":["---","---","0:00","---","---","---","---","---"],"hlxlw2":["---","---","0:00","---","---","---","---","---"],"hlxlw3":["---","---","0:00","---","---","---","---","---"]}

Config.ymal entry:

mqtt:
  sensor:
  - name: "Davis Vantage Pro RSSI"
    state_topic: "/weather/wflexpj.json"
    unit_of_measurement: "dBm"
    value_template: "{{ value_json['value'].rssi }}"
    availability:
      - topic: "/weather/wflexpj.json"
    payload_available: "online"
    payload_not_available: "offline"
    json_attributes_topic: "/weather/wflexpj.json"
value_template: "{{ value_json.rssi }}"

Thank you

That worked after I excised the availability portion of the template:

While I do want to understand why that portion prevented a return, it is not core functionality to me right now.