MQTT Sensor setting in Home Assistant

1. When setting up the sensor in HA configuration.yaml. Am I missing something? Config check does not like it (See in Bold below).

This was what renatohtpc had in the topic

Topic: Added MQTT support

- platform: mqtt
name: “MQTT Temp”
state_topic: “Southampton/WD/json”
unit_of_measurement: "

Note: My state topic is: “WeatherDisplay/WD/json”

2. Another is if I use in MQTTin.txt: WeatherDisplay/temp:{“temp”:“%temp%”}
My result is: {“wchill”:21.7 } °F
How do you make it to just show 21.7 °F

Thank you.

I’ve got #1 figured out. was missing value_template in configuration.yaml.

  • platform: mqtt
    name: “WD Outside Temp”
    state_topic: “WeatherDisplay/WD/json”
    unit_of_measurement: “°F”
    value_template: “{{ value_json.temp }}”

  • platform: mqtt
    name: “WD Windchill”
    state_topic: “WeatherDisplay/WD/json”
    unit_of_measurement: “°F”
    value_template: “{{ value_json.wchill }}”

  • platform: mqtt
    name: “WD Outside Humidity”
    state_topic: “WeatherDisplay/WD/json”
    unit_of_measurement: “%”
    value_template: “{{ value_json.hum }}”

You can add midi files also:

Example:

  • platform: mqtt
    name: “WD Outside Temp”
    state_topic: “WeatherDisplay/WD/json”
    unit_of_measurement: “°F”
    value_template: “{{ value_json.temp }}”
    icon: mdi:thermometer

You can find all the HA midi’s here: Material Design Icons

Anyone know why some of the tagslist devices do not work with MQTT?

Soiltemps??

VP soil temp/moisture/extra temperature/humidity

%VPsoilmoisture%…Davis VP soil moisture
%VPsoilmoisture2%…Davis VP soil moisture, # 2 sensor
%VPsoilmoisture3%…Davis VP soil moisture, # 3 sensor
%VPsoilmoisture4%…Davis VP soil moisture, # 4 sensor
%soilmoistpercent%…Davis VP soil moisture expressed as a percentage (100% is saturated)
%VPsoiltemp%…Davis VP soil temperature #1
%VPsoiltemp2%…Davis VP soil temperature #2
%VPsoiltemp3%…Davis VP soil temperature #3
%VPsoiltemp4%…Davis VP soil temperature #4

what version/build of WD?

10.37S123

Here is the display in HA:

http://zumbrota-weather.com/temp/Capture.PNG

Configuration.yaml:

  • platform: mqtt
    name: “WD2 Soil Temp 1”
    state_topic: “WeatherDisplay2/WD/VPsoiltemp”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 Soil Temp 2”
    state_topic: “WeatherDisplay2/WD/VPsoiltemp2”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 Soil Temp 3”
    state_topic: “WeatherDisplay2/WD/VPsoiltemp3”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 Soil Temp 4”
    state_topic: “WeatherDisplay2/WD/VPsoiltemp4”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 Wind Direction”
    state_topic: “WeatherDisplay2/WD/dirlabel”
    unit_of_measurement: “”
  • platform: mqtt
    name: “WD2 Max Windchill”
    state_topic: “WeatherDisplay2/WD/maxwindchill”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 Windchill”
    state_topic: “WeatherDisplay2/WD/windch”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 Temp”
    state_topic: “WeatherDisplay2/WD/temp”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 UV”
    state_topic: “WeatherDisplay2/WD/VPuv”
    unit_of_measurement: “°F”
  • platform: mqtt
    name: “WD2 weatherdescription”
    state_topic: “WeatherDisplay2/WD/weatherdescription”
    unit_of_measurement: “”

do you have ticked in WD that you have a soil temperature sensor?
(in the davis weather station type setup)

yes.

http://zumbrota-weather.com/temp/Capture.PNG

I have it working now. I’m by no means a MQTT expert. When you use Weatherman-Marks way, naming had to match before and after the colon. see bold. I wish the curly brackets didn’t show up when displaying in HA. I’m going to use renatohtpc’s json. No curly brackets are displayed then. Thank you Brian for your assistance.

WeatherDisplay2/VPsoiltemp:{ %VPsoiltemp% }
WeatherDisplay2/VPsoiltemp2:{ %VPsoiltemp2% }
WeatherDisplay2/VPsoiltemp3:{ %VPsoiltemp3% }
WeatherDisplay2/VPsoiltemp4:{ %VPsoiltemp4% }

json for soiltemps: “VPsoiltemp”:%VPsoiltemp%“,“VPsoiltemp2”:%VPsoiltemp2%”,“VPsoiltemp3”:%VPsoiltemp3%“,“VPsoiltemp4”:%VPsoiltemp4%”