Ambient Weather API

Hi,

I have an Ambient Weather Station IP1400 today that is feeding HA from Weather Underground. As Weather Underground is switching off their free API interface I’m wondering if someone is already working on, or able to make an integration from HA to Ambient Weather API. Hopefully there are more people interested in this?

https://www.ambientweather.com/api.html

Thats my one wish for christmas :slight_smile:

1 Like

Have you tried google :slight_smile:

Thanks for the tip. Unfortunately I’m not sure how to deal with it. I already have Node-Red and MQTT running on another Pi, but I don’t know how to install or implement this. Googeling now to try to figure this out… :slight_smile:

@oddvarness I have a pending PR to add Ambient Weather PWS sensor component.

3 Likes

@Noodles224 Wow, that would be great. Looking forward to it :smiley:

Thanks! I was going to take a stab at building the integration. Glad to see you already did!

Add me to the list of those waiting to add our Ambient PWS.

:crossed_fingers:t5: gimmie dat ambient component for HA pls

I was not able to figure out how to deal with the API part my self so came up with another temporary solution. If anyones interested in a workaround it is possible to scrape the internal website of the radio receiver for the IP-1400 weather station. I scrape the data there, parse it and pass it on to MQTT, all through Node-Red.

Flow Example

My Node-Red Flow is as below:

[{"id":"3727bd98.cc1722","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":340,"wires":[["2cde2784.aadf58"]]},{"id":"18205f61.b4d631","type":"switch","z":"fd58cf86.20eb7","name":"Data Parse","property":"payload.name","propertyType":"msg","rules":[{"t":"cont","v":"inTemp","vt":"str"},{"t":"cont","v":"inHumi","vt":"str"},{"t":"cont","v":"AbsPress","vt":"str"},{"t":"cont","v":"RelPress","vt":"str"},{"t":"cont","v":"outTemp","vt":"str"},{"t":"cont","v":"outHumi","vt":"str"},{"t":"cont","v":"windir","vt":"str"},{"t":"cont","v":"avgwind","vt":"str"},{"t":"cont","v":"gustspeed","vt":"str"},{"t":"cont","v":"solarrad","vt":"str"},{"t":"cont","v":"uv","vt":"str"},{"t":"cont","v":"uvi","vt":"str"},{"t":"cont","v":"rainofhourly","vt":"str"}],"checkall":"true","outputs":13,"x":330,"y":300,"wires":[["85fa499f.f5a318"],["9ee96886.4e7c68"],["e6ff9ff8.f6992"],["59171f5e.23ee3"],["dd747aca.932f58"],["88f24f8.e91dfb"],["a54132ff.f8e0b"],["c57ef5c2.cf9528"],["3727bd98.cc1722"],["a89d7433.869ee8"],["e4276e5.124379"],["6aa5954d.7dea3c"],["efcb2256.59238"]]},{"id":"2cde2784.aadf58","type":"mqtt out","z":"fd58cf86.20eb7","name":"gustspeed","topic":"ws/gustspeed","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1029,"y":342,"wires":[]},{"id":"9781531b.ffd59","type":"html","z":"fd58cf86.20eb7","name":"","tag":"input.item_2","ret":"attr","as":"multi","x":110,"y":360,"wires":[["18205f61.b4d631","4f1eee87.8333b"]]},{"id":"85fa499f.f5a318","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":20,"wires":[["48c32a6d.330b64"]]},{"id":"9ee96886.4e7c68","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":60,"wires":[["303f06bd.b1f9ca"]]},{"id":"e6ff9ff8.f6992","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":100,"wires":[["2da952bc.c96fae"]]},{"id":"59171f5e.23ee3","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":140,"wires":[["c61a348e.8940d8"]]},{"id":"dd747aca.932f58","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":180,"wires":[["dbcb87aa.342b78"]]},{"id":"88f24f8.e91dfb","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":220,"wires":[["321182e0.7a5dfe"]]},{"id":"a54132ff.f8e0b","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":260,"wires":[["dc8bacd1.67608"]]},{"id":"c57ef5c2.cf9528","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":300,"wires":[["3359ad10.e518c2"]]},{"id":"a89d7433.869ee8","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":380,"wires":[["57986bb1.966344"]]},{"id":"e4276e5.124379","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":420,"wires":[["c25d89f4.300088"]]},{"id":"6aa5954d.7dea3c","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":460,"wires":[["ddda97cf.1058b8"]]},{"id":"efcb2256.59238","type":"change","z":"fd58cf86.20eb7","name":"Value Only","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":500,"wires":[["7899358c.2810ac"]]},{"id":"4f1eee87.8333b","type":"debug","z":"fd58cf86.20eb7","name":"","active":true,"console":"false","complete":"false","x":330,"y":420,"wires":[]},{"id":"4a1aab14.587054","type":"http request","z":"fd58cf86.20eb7","name":"","method":"GET","ret":"txt","url":"http://192.168.10.30/livedata.htm","tls":"","x":110,"y":300,"wires":[["9781531b.ffd59"]]},{"id":"48c32a6d.330b64","type":"mqtt out","z":"fd58cf86.20eb7","name":"inTmp","topic":"ws/intemp","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1010,"y":20,"wires":[]},{"id":"303f06bd.b1f9ca","type":"mqtt out","z":"fd58cf86.20eb7","name":"inHumi","topic":"ws/inhumi","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1010,"y":60,"wires":[]},{"id":"2da952bc.c96fae","type":"mqtt out","z":"fd58cf86.20eb7","name":"AbsPress","topic":"ws/abspress","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1019,"y":102,"wires":[]},{"id":"c61a348e.8940d8","type":"mqtt out","z":"fd58cf86.20eb7","name":"RelPress","topic":"ws/relpress","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1019,"y":142,"wires":[]},{"id":"dbcb87aa.342b78","type":"mqtt out","z":"fd58cf86.20eb7","name":"OutTemp","topic":"ws/outtemp","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1019,"y":182,"wires":[]},{"id":"321182e0.7a5dfe","type":"mqtt out","z":"fd58cf86.20eb7","name":"OutHumi","topic":"ws/outhumi","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1019,"y":222,"wires":[]},{"id":"dc8bacd1.67608","type":"mqtt out","z":"fd58cf86.20eb7","name":"windir","topic":"ws/windir","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1009,"y":262,"wires":[]},{"id":"3359ad10.e518c2","type":"mqtt out","z":"fd58cf86.20eb7","name":"avgwind","topic":"ws/avgwind","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1019,"y":302,"wires":[]},{"id":"57986bb1.966344","type":"mqtt out","z":"fd58cf86.20eb7","name":"solarrad","topic":"ws/solarrad","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1019,"y":382,"wires":[]},{"id":"c25d89f4.300088","type":"mqtt out","z":"fd58cf86.20eb7","name":"uv","topic":"ws/uv","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1009,"y":422,"wires":[]},{"id":"ddda97cf.1058b8","type":"mqtt out","z":"fd58cf86.20eb7","name":"uvi","topic":"ws/uvi","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1009,"y":462,"wires":[]},{"id":"7899358c.2810ac","type":"mqtt out","z":"fd58cf86.20eb7","name":"rainofhourly","topic":"ws/rainofhourly","qos":"","retain":"","broker":"64bd7ed1.ca773","x":1029,"y":502,"wires":[]},{"id":"3efcc4a5.e501dc","type":"inject","z":"fd58cf86.20eb7","name":"Scrape WS IP-1401","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":true,"x":140,"y":240,"wires":[["4a1aab14.587054"]]},{"id":"64bd7ed1.ca773","type":"mqtt-broker","z":"","broker":"192.168.10.7","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":"15","cleansession":true,"willTopic":"","willQos":"0","willRetain":null,"willPayload":"","birthTopic":"","birthQos":"0","birthRetain":null,"birthPayload":""}]    

Today I upgraded to v87.0 Hassio, configured the Ambient Weather component from the Integration UI, and used the Configure UI tool to add the sensors to various entity and gauge cards. I was able to obtain the APP Key finally, but it appears it’s no longer necessary. All configuration data lives in .storage. No configuration errors are reported by homeassistant check.

The problem is I’m not seeing regular refresh rates of the sensors in the v1.5 iOS app. If I restart HA, I get new values, but an iOS application refresh doesn’t do it. This is a new Ambient installation for me, so no past history to go by.

Here’s a sensor from the core.entity_registry file:
{
“config_entry_id”: “entity_id value”,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “sensor.weather_station_event_rain”,
“name”: null,
“platform”: “ambient_station”,
“unique_id”: “mac address_Event Rain”
},
Is there a means to specify refresh rates, or what may I be missing?

This is known bug with a fix already in place – should be coming with 0.88.

Thank you.

Hi all, was looking around for a bit but couldn’t find a definitive answer. Does this API work off line if the internet goes down or ambient close their servers?

No. Ambient gets the data. If your HA instance can’t reach ambient, no data is available.

@vijaykbhatia An additional thought: the sensors do communicate with the base station via 433mhz (so far as I can tell); although it would require some non-trivial work, I imagine it’d be possible to connect a 433mhz antenna to your HASS machine and read the data locally. YMMV.

How do we go about getting the new lightning detector sensor added to this integration?

If you have one and want to take a stab at adding the code for it, feel free to open an aioambient PR.