where 192.168.1.199 is the local IP address of the WLL. That provides the basic data, and there isn’t any need to use the v2 internet API. I’ve tried that in Python, and it works, but it’s much more complicated as it needs fresh hash functions and signatures to be calculated programatically before every call to the API - which would probably need a Python integration. With my fairly simple setup there’s no advantage in doing that.
" Additionally, each weather observation data record in the data array will contain a ts field in addition to the weather observation data fields. The ts field is the Unix timestamp of the data record"
I can’t get my HA reading from the Weatherlink API. I have copied your code (as below). (I have substituted username, password and APItoken for my real values.)
do I enclode them in quotes as shown - or no quotes? (couldn’t get either to work)
is there really a zero in there - as in “…0$pass=…” ?
I have to resort to using the weatherlink API method as it seems my old Weatherlink IP data logger doesn’t allow me to use the direct, local method.
Ian
# Davis weather station - read from weatherlink API
- platform: rest
resource: https://api.weatherlink.com/v1/NoaaExt.json?user="username"0&pass="password"&apiToken="APItoken"
# resource: https://api.weatherlink.com/v1/NoaaExt.json?user=<REDACTED>0&pass=<REDACTED>&apiToken=<REDACTED>
scan_interval: 600
name: weatherlink
json_attributes:
- temp_c
- davis_current_observation
value_template: '{{ value_json.weatherlink }}'
```
I have made some progress - but nowhere near enough!
I investigated the Davis API documentation and realised I had to use my DeviceID, and not my Weatherlink username in the string. If I enter the full string into a browser now, I get the reply with all the weather data. However, I still can’t see any entities in the Developer Tools.
If I have just the 8 lines as above, should I see sensor.weatherlink in Developer Tools? (I’m guessing so because that is referred to in the “platform: templte” lines that follow
I solved my problem using the Weatherlink API v1 as demonstrated by Muttley was above. I had the same trouble as Ben - I was using the xml version of the call - not the JSON version.
Could someone solve this topic with the rain sensor ?
I also implemented my weatherlink with the “rest” API. Temperatures and humidity work fine, but the value for the rain I just have to divide by 5 - but how to do that easily ?
Hi! I too am trying to connect a Davis VantagePro 2 into home assistant. Im still a newbie so please be patient with me. How were you able to connect using lan? My Davis instrument has no lan cable…
Good evening
I have recently purchased a Davis Vantage pro 2 station and I wanted to know if someone can please ask me how to read it from Home Assistant?
I saw that some of you have created a fantastic list with all the values in Lovelace and it would be great to have it and do some automation with that data.
I also have Weatherlink live.
I would recommend trying this as a starting point, much easier than custom sensors. I do also have some customs sensors which I can share but try the link first.