New Add-on: Vantage Pro 2 MQTT (Deprecated)

You need to have a mqtt broker like the mosquitto broker installed and automatic discovery need to be on. After that you will find a device called “Davis Weather Station”.

Scherm­afbeelding 2022-11-14 om 07.39.50

Is there a guide to setting up the broker? This is a new area of HA for me…

I think I’ve got the MQTT broker setup and the integration configured, but no devices / entities are showing up for davis weather station…

Is the MQTT broker running?
Is the Vantage Pro 2 MQTT running? And what does the Log of this add-on say?

Both are running as far as I can tell. This is my first attempt at using mqtt so I’m not sure what to expect…

Somehow got it working by changing the port to the port the vantage station is using.

Thank you for helping me get this working…

Now…on to the carrier air conditioning…

Hi Marco,

I have a Vantage Pro 2 and an original Serial2usb adapter. Now I was happy to find your add-on and installed it directly. Now I have filled out the configuration and started the add-on, but an error always appears there. Would be very grateful for your help.

The Log:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[20:22:32] INFO: MQTT available, fetching server details …
[20:22:32] INFO: MQTT server settings not configured, trying to auto-discovering …
[20:22:32] DEBUG: Requested API resource: http://supervisor/services/mqtt
[20:22:32] DEBUG: Request method: GET
[20:22:32] DEBUG: Request data: {}
[20:22:32] DEBUG: API HTTP Response code: 200
[20:22:32] DEBUG: API Response: {“result”: “ok”, “data”: {“host”: “core-mosquitto”, “port”: 1883, “ssl”: false, “protocol”: “3.1.1”, “username”: “addons”, “password”: “rauC5Shoh3bei5chohl7sahS5geichoopheip8wap1tiesazeitokaexoo8iung5”, “addon”: “core_mosquitto”}}
[20:22:33] INFO: -d /dev/ttyUSB1 -a port: /dev/ttyUSB1 -b core-mosquitto -P 1883 -u addons -p rauC5Shoh3bei5chohl7sahS5geichoopheip8wap1tiesazeitokaexoo8iung5 -I homeassistant -s Metric -i 30 -l debug
[2023-01-14 20:22:33] ERROR: Must define MQTT Broker in configuration!
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Hi Mario,

I notice you entered a value in the “Address” field in the configuration. You should leave that field empty if you entered a value in the “Device” field.

Hi Marco,

thanks for your help. now its working great :+1:

Ok, Finally add-on is working with an ethernet data logger. But when the add-on is running, no other client ( Weatherlink, Weathercloud ) can access the station ( Vantage Pro 2 ). Is there a way to make them all access my station?
Thank you

Hi, the Vantage Pro 2 is read every x seconds. There’s no persistent connection, so between reads other software should be able to connect.

Hi Marco, I don’t know why, but no other software is able to read from the station. I just ran another test a minute ago and both of the other software stopped refreshing the minute I started the add-on. I have tried to set the refresh from 30, 60 120 seconds and even more and it did nothing.

Hola. No. Una vez integrado en Home assistant no permite el acceso a weatherlink. Aún así Marcos enhorabuena por la integración. Un saludo.

I have the same problem. After installing addon weatherlink unable to get data from the console.
App no longer updating.

Hi Marco, I really welcome the ability to get my Vantage Pro 2 data into HA - thank you for that initiative.
Like so many others, MQTT is new to me and I seem to need help. Like Dan, I am getting my data via a wifilogger2 and as it seems to work for Dan, I think it should be possible here also.
I have noticed two issues that may or may not be related:

  • on the MQTT-broker, I do not get any services or ettities on the front - even though I am able to listen to data from the wifilogger data inside the integration
  • the Vantage Pro to MQTT starts up nicely, but breaks off at the “ Write : <’\n’>”
    I have attached the debug log below:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[21:53:15] INFO: MQTT available, fetching server details ...
[21:53:15] INFO: MQTT server settings not configured, trying to auto-discovering ...
[21:53:16] DEBUG: Requested API resource: http://supervisor/services/mqtt
[21:53:16] DEBUG: Request method: GET
[21:53:16] DEBUG: Request data: {}
[21:53:16] DEBUG: API HTTP Response code: 200
[21:53:16] DEBUG: API Response: {"result": "ok", "data": {"host": "core-mosquitto", "port": 1883, "ssl": false, "protocol": "3.1.1", "username": "addons", "password": "password", "addon": "core_mosquitto"}}
[21:53:18] INFO: -d null -a 10.0.250.198:1883 -b core-mosquitto -P 1883 -u addons -p password -I homeassistant -s Metric -i 30 -l debug
[2023-02-21 21:53:18] DEBUG: device =
[2023-02-21 21:53:18] DEBUG: address = 10.0.250.198:1883
[2023-02-21 21:53:18] DEBUG: broker = core-mosquitto
[2023-02-21 21:53:18] DEBUG: port = 1883
[2023-02-21 21:53:18] DEBUG: mqtt_user = addons
[2023-02-21 21:53:18] DEBUG: mqtt_pass = password
[2023-02-21 21:53:18] DEBUG: discovery_prefix = homeassistant
[2023-02-21 21:53:18] DEBUG: unit_system = Metric
[2023-02-21 21:53:18] DEBUG: interval = 30
[2023-02-21 21:53:18] DEBUG: log_level = debug
[2023-02-21 21:53:18] DEBUG: new_sensor_used = False
[2023-02-21 21:53:18] DEBUG: alt_windspeed_uom = False
[2023-02-21 21:53:18] DEBUG: Added MQTT user and password
[2023-02-21 21:53:18] INFO: Acquiring data from tcp:10.0.250.198:1883 using vproweather
[2023-02-21 21:53:18] INFO: new <TCPLink tcp:10.0.250.198:1883> was initialized
[2023-02-21 21:53:18] INFO: try wake up console
[2023-02-21 21:53:18] INFO: Write : <'\n'>
[2023-02-21 21:53:58] ERROR: Check ACK: BAD ('\n\r' != '')
[2023-02-21 21:53:59] INFO: try wake up console
[2023-02-21 21:53:59] INFO: Write : <'\n'>
[2023-02-21 21:54:39] ERROR: Check ACK: BAD ('\n\r' != '')
[2023-02-21 21:54:40] INFO: try wake up console
[2023-02-21 21:54:40] INFO: Write : <'\n'>
[2023-02-21 21:55:20] ERROR: Check ACK: BAD ('\n\r' != '')
[2023-02-21 21:55:20] ERROR:
[2023-02-21 21:55:20] INFO: Close connection <TCPLink tcp:10.0.250.198:1883>
[2023-02-21 21:55:21] INFO: Connection <TCPLink tcp:10.0.250.198:1883> was closed
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

It looks like you entered the address and port of your home assistant server. You need to provide the address and port of the Weatherlink IP device.

See also: https://wiki.trixology.com/index.php?title=How_to_setup_the_Davis_WeatherLinkIP™_data_logger

Thanks for sharing, it does seem to work on my side , at first i thought it was not then i changed the log to another option.
The thing is, i can’t see the addon working ( connected a pro2 console with a usb wifi logger baudrate 19200)
i saw the bad ack notice only and nothing else , but it is running, only the dot that supposed to be green is still red and the start button still is there.

Any ideas ? it gives all the values.



Try force refreshing the browser. If the addon is running and in the browser it looks like isn’t not, it’s probably a browser caching issue.

Hi Marco, Thank you so much for sharing the Vantage Pro 2 MQTT add-on. I have a Davis Vantage Pro2 and it is working great with your add-on and the Mosquitto MQTT broker. Set-up was pretty straight forward.

I have however noticed (like some others) that once Vantage Pro 2 MQTT is started and running other connections to the TCP link cannot be made, like the Davis Weatherlink reporting or my PC console. Once the Vantage Pro 2 MQTT add-on is stopped other TCP link connections can resume.

I have run the log in debug mode and what I have noticed is that the a new TCPLink is initialized, console is awaken and data is transferred for all sensors and then data is sent to MQTT. This all looks normal. Once the “interval” time passes, there is another console wake up and more data is transferred and sent to MQTT. This process repeats and continues until Vantage Pro 2 MQTT is stopped. What isn’t seen is a release of the TCP link in-between data capture intervals. (In my case, from the log, it would be the release of address 192.168.1.4:22222.) Releasing the TCP link connection when idling should allow others to connect.

Here is a log file:

Vantage Pro to MQTT log

[2023-04-15 09:31:54] DEBUG: address = 192.168.1.4:22222
[2023-04-15 09:31:54] DEBUG: broker = core-mosquitto
[2023-04-15 09:31:54] DEBUG: port = 1883
[2023-04-15 09:31:54] DEBUG: mqtt_user = XXXXXX
[2023-04-15 09:31:54] DEBUG: mqtt_pass = XXXXXXXXXXXXXXXXX
[2023-04-15 09:31:54] DEBUG: discovery_prefix = homeassistant
[2023-04-15 09:31:54] DEBUG: unit_system = Imperial
[2023-04-15 09:31:54] DEBUG: interval = 10
[2023-04-15 09:31:54] DEBUG: log_level = debug
[2023-04-15 09:31:54] DEBUG: new_sensor_used = False
[2023-04-15 09:31:54] DEBUG: alt_windspeed_uom = False
[2023-04-15 09:31:54] DEBUG: Added MQTT user and password
[2023-04-15 09:31:54] INFO: Acquiring data from tcp:192.168.1.4:22222 using vproweather
[2023-04-15 09:31:54] INFO: new <TCPLink tcp:192.168.1.4:22222> was initialized
[2023-04-15 09:31:54] INFO: try wake up console
[2023-04-15 09:31:54] INFO: Write : <'\n'>
[2023-04-15 09:31:54] INFO: Read : <'\n\r'>
[2023-04-15 09:31:54] INFO: Check ACK: OK ('\n\r')
[2023-04-15 09:31:54] INFO: try send : VER
[2023-04-15 09:31:54] INFO: Write : <'VER\n'>
[2023-04-15 09:31:54] INFO: Read : <'\n\rOK\n\r'>
[2023-04-15 09:31:54] INFO: Check ACK: OK ('\n\rOK\n\r')
[2023-04-15 09:31:54] INFO: Read : <'Nov 14 2016\n\r'>
[2023-04-15 09:31:54] INFO: Set weather station time to system time
[2023-04-15 09:31:54] INFO: try wake up console
[2023-04-15 09:31:54] INFO: Write : <'\n'>
[2023-04-15 09:31:55] INFO: Read : <'\n\r'>
[2023-04-15 09:31:55] INFO: Check ACK: OK ('\n\r')
[2023-04-15 09:31:55] INFO: try send : SETTIME
[2023-04-15 09:31:55] INFO: Write : <'SETTIME\n'>
[2023-04-15 09:31:55] INFO: Read : <'\x06'>
[2023-04-15 09:31:55] INFO: Check ACK: OK ('\x06')
[2023-04-15 09:31:55] INFO: try send : 36 1F 09 0F 04 7B 1F B0
[2023-04-15 09:31:55] INFO: Write : <36 1F 09 0F 04 7B 1F B0>
[2023-04-15 09:31:56] INFO: Read : <'\x06'>
[2023-04-15 09:31:56] INFO: Check ACK: OK ('\x06')
[2023-04-15 09:31:56] INFO: try wake up console
[2023-04-15 09:31:56] INFO: Write : <'\n'>
[2023-04-15 09:31:57] INFO: Read : <'\n\r'>
[2023-04-15 09:31:57] INFO: Check ACK: OK ('\n\r')
[2023-04-15 09:31:57] INFO: try send : LOOP 1
[2023-04-15 09:31:57] INFO: Write : <'LOOP 1\n'>
[2023-04-15 09:31:58] INFO: Read : <'\x06'>
[2023-04-15 09:31:58] INFO: Check ACK: OK ('\x06')
[2023-04-15 09:31:58] INFO: Read : <4C 4F 4F 14 00 FC 00 12 75 DD 02 2F 6E 02 00 00 28 01 FF FF FF FF FF FF FF 
FF FF FF FF FF FF FF FF 34 FF FF FF FF FF FF FF 00 00 07 BA 00 D5 00 17 47 02 00 17 02 E5 04 0D 00 88 00 40 02 
FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 03 06 4B 81 02 9C 07 0A 0D D5 95>
[2023-04-15 09:31:58] INFO: Check CRC : OK
[2023-04-15 09:31:58] INFO: Initializing sensors from Home Assistant to auto discover.
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/DavisTime
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/BaroTrend
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/BaroCurr
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/InsideTemp
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/InsideHum
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/OutsideTemp
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/WindSpeed
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/WindAvgSpeed
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/WindDir
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/OutsideHum
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/RainRate
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/UVLevel
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/SolarRad
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/DayRain
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/MonthRain
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/YearRain
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/BattVoltage
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/ForeIcon
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/ForeRule
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/HeatIndex
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/WindChill
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/FeelsLike
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/WindDirRose
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/DewPoint
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/sensor/vantagepro/WindSpeedBft
[2023-04-15 09:31:58] DEBUG: Sent config for sensor homeassistant/binary_sensor/vantagepro/IsRaining
[2023-04-15 09:31:58] DEBUG: Datetime=2023-04-15T09:31:58-0400 (type=<class 'str'>)
[2023-04-15 09:31:58] DEBUG: BarTrend=Rising Slowly (type=<class 'str'>)
[2023-04-15 09:31:58] DEBUG: Barometer=29.97 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: TempIn=73.3 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: HumIn=47 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: TempOut=62.2 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: WindSpeed=0 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: WindSpeed10Min=0 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: WindDir=296 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: HumOut=52 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: RainRate=0.0 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: UV=7 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: SolarRad=186 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: RainDay=0.02 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: RainMonth=5.35 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: RainYear=12.53 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: BatteryVolts=4.6 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: ForecastIcon=6 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: ForecastRuleNo=Partly cloudy and cooler. (type=<class 'str'>)
[2023-04-15 09:31:58] DEBUG: HeatIndex=62.2 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: WindChill=62.2 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: FeelsLike=62.2 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: WindDirRose=WNW (type=<class 'str'>)
[2023-04-15 09:31:58] DEBUG: DewPoint=44.4 (type=<class 'float'>)
[2023-04-15 09:31:58] DEBUG: WindSpeedBft=0 (type=<class 'int'>)
[2023-04-15 09:31:58] DEBUG: IsRaining=OFF (type=<class 'str'>)
[2023-04-15 09:31:58] INFO: Data sent to MQTT

[2023-04-15 09:37:44] INFO: try wake up console
[2023-04-15 09:37:44] INFO: Write : <'\n'>
[2023-04-15 09:37:45] INFO: Read : <'\n\r'>
[2023-04-15 09:37:45] INFO: Check ACK: OK ('\n\r')
[2023-04-15 09:37:45] INFO: try send : LOOP 1
[2023-04-15 09:37:45] INFO: Write : <'LOOP 1\n'>
[2023-04-15 09:37:46] INFO: Read : <'\x06'>
[2023-04-15 09:37:46] INFO: Check ACK: OK ('\x06')
[2023-04-15 09:37:46] INFO: Read : <4C 4F 4F 14 00 FC 00 11 75 DE 02 2F 6F 02 00 00 43 01 FF FF FF FF FF FF FF 
FF FF FF FF FF FF FF FF 34 FF FF FF FF FF FF FF 00 00 00 5A 00 D5 00 17 47 02 00 17 02 E5 04 0D 00 88 00 40 02 
FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 03 06 4B 81 02 9C 07 0A 0D F2 1E>
[2023-04-15 09:37:46] INFO: Check CRC : OK
[2023-04-15 09:37:46] DEBUG: Datetime=2023-04-15T09:37:46-0400 (type=<class 'str'>)
[2023-04-15 09:37:46] DEBUG: BarTrend=Rising Slowly (type=<class 'str'>)
[2023-04-15 09:37:46] DEBUG: Barometer=29.969 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: TempIn=73.4 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: HumIn=47 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: TempOut=62.3 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: WindSpeed=0 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: WindSpeed10Min=0 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: WindDir=323 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: HumOut=52 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: RainRate=0.0 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: UV=0 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: SolarRad=90 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: RainDay=0.02 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: RainMonth=5.35 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: RainYear=12.53 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: BatteryVolts=4.6 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: ForecastIcon=6 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: ForecastRuleNo=Partly cloudy and cooler. (type=<class 'str'>)
[2023-04-15 09:37:46] DEBUG: HeatIndex=62.3 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: WindChill=62.3 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: FeelsLike=62.3 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: WindDirRose=NW (type=<class 'str'>)
[2023-04-15 09:37:46] DEBUG: DewPoint=44.4 (type=<class 'float'>)
[2023-04-15 09:37:46] DEBUG: WindSpeedBft=0 (type=<class 'int'>)
[2023-04-15 09:37:46] DEBUG: IsRaining=OFF (type=<class 'str'>)
[2023-04-15 09:37:46] INFO: Data sent to MQTT

Thanks…

@Manic389 @Suspiro @grssll @RichardL

I looked into the problem of the add-on claiming the IP port of the TCP Link and doesn’t let go between reads and I think I fixed the problem in version 1.0.8. Please give it a try.