Ambient Weather Device

Cool. Setting my Dad up with HE and his Davis weather station, but its temp/humidity sensor has been failing frequently (6 months on average) due to the salt air. So I sent him an Ambient WS-0265 to supplement those two readings and we'll bring it all into dashboard for them.

This will make things even easier.

It works great.

1 Like

Yep. I have the WS-900-IP myself. I look forward to being able to get rid of the device labels though. Really don't like that every tile has to have the device name in it.

Was planning to use @Cobra 's Super Tile, but haven't figured out how to use it yet.

1 Like

for those using so-called "Freedom" degrees and associated units, perhaps. Needs some modification to use SI units (i.e. for most of the world).

I have no idea what you are referring to,

16 posts were split to a new topic: Personal Dispute about posts

You've clicked the link at the bottom of the page that gives your application key,

Now you need the one from the right of the bottom of that screen "create api key"

With your application key, and api key, the app works.

FYI, you should edit/delete that key from your post so that others don't use your key ....

Do you mean under the column where it says "label" is the actual application key? If it is, I use that and the API Key and get this with the app:

Yes, You should have 2 keys one by clicking the link below this section(get application key), and the other by clicking the link on the right of this section (get api key) after that it should appear like this.
The top "your label" is the application key
The bottom "your label" is the api key

Then you open up the app on hubitat and enter the following key's into their respective lines .

Bingo, that was it. Thanks for clarifying that for me - you da man!

Enjoy, I was overwhelming happy when I found this app, so much you can do from the attributes.

Thank you very much for the work on this driver, I use it in several rules.

I think I found what is causing the refresh problem mentioned above. I needed to change my refresh interval so I went through the app setup again and got the following:

app:3272019-06-30 06:35:11.327 pm errorjava.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI on line 93 (updated)

app:3272019-06-30 06:35:11.292 pm debugInstalled

app:3272019-06-30 06:35:11.280 pm debugUpdated

The Ambient Weather Device stopped updating at that point.

I was able to get past this by commenting out lines 56 - 62 in the app code. The only way to update API key, MAC address, and Refresh Interval is to go through setup again, which attempts to create a new device. The duplicate device error stops the program from processing the update(s).

Comment out the below code after initial setup and you can update any of the parameters.

@thomas.c.howard, I wonder if your Son might have a look at this? I would do it myself, but I am not much of a programmer.

Commented out lines identified with //*

def installed() {
// log.debug("Installed");*


// addDevice();*


// initialize();*


// runEvery5Minutes(fetchNewWeather);*
}

@sgrayban - I just had to replace the outdoor sensor (a remote sensor) for my Ambient Weather station becuase it was no longer reporting correctly. Unfortunatlely for me, I had to purchase an add-on sensor (WH31B), since the original outdoor sensor included with my station is only available from ambientweather.com, but they don't ship to Canada. The new sensor is "Sensor 1" as far as ambientweather.net is concerned, and Weather Underground cannot see it at all :angry: Their support staff knew this, but failed to tell me before I imported a replacement from Amazon.com for $40 CAD!

Long story short, would you be so kind (and does the API support) to add support for add-on sensors to the driver so I can get that data into HE?

How does the sensor connect ? Wifi... Internet ? Can you see it in the Ambient app ?

1 Like

It's a 915 MHz sensor just like the others. It can be seen in the Ambient Weather app and on the ambientweather.net dashboard. But according the Ambient Weather tech support, it can only be seen in their online dashboard and app, not on Weather Underground. I also checked in my pwsweather.com account and it cannot be seen their either.

They only way I can see how to pull that data is 1 of 2 ways... I get access to your ambient account or we have to go the way of installing weewx and pulling the data from a wifi hotspot.

1 Like

Weewx is a no go. For my station, it pulls data from WU, which cannot see the add-on data.

So your station is a dumb station ?

Let's continue this is the other private message

What info do you need from Ambient Weather? I partner with them through Simplex Technology and I can get you any details you need? I developed the "approved' Ambient Weather integrations for HomeSeer and ISY.

I use 8 of the add-on sensors around the house. The sensors send back temp and humidity. If you add sensors, Ambient will automatically add the data to the json data stream as temp1f and humidity1 for the first sensor; temp2f, humidity2 for the 2nd sensor etc.... Here's how I added all 8 of my sensors:

Open the code for the "Ambient Weather Device" in your "Drivers Code" section of Hubitat

I've named my sensors after the locations that they're placed, but you can call yours whatever you want, but keep the names consistent between sections. I'm also showing you three sensors, but you'll probably need to add only one set, so you can just use one pair in each of the two sections.

In the "definition" section up top, add the following attributes:

attribute "watermains_temp", "number" //add-on sensor #1
attribute "watermains_humidity", "number" //add-on sensor #1

attribute "sump_pump_temp", "number" //add-on sensor #2
attribute "sump_pump_humidity", "number" //add-on sensor #2

attribute "attic_temp", "number" //add-on sensor #3
attribute "attic_humidity", "number" //add-on sensor #3

NEXT, in the "def setWeather" section of the driver code, add the paired "sendEvent" chunks of code:

sendEvent(name: "watermains_temp", value: weather.temp1f, unit: 'F', isStateChange: true);
sendEvent(name: "watermains_humidity", value: weather.humidity1, unit: '%', isStateChange: true);

sendEvent(name: "sump_pump_temp", value: weather.temp2f, unit: 'F', isStateChange: true);
sendEvent(name: "sump_pump_humidity", value: weather.humidity2, unit: '%', isStateChange: true);

sendEvent(name: "attic_temp", value: weather.temp3f, unit: 'F', isStateChange: true);
sendEvent(name: "attic_humidity", value: weather.humidity3, unit: '%', isStateChange: true);

You shouldn't need to change anything in the apps code.

If I recall, you need to open the "Ambient Weather Device" in the devices section, and hit "Refresh" but if that doesn't work, you may need to delete and then re-add the device. (I can't remember which...)

Don't know if all of that was clear or not, so let me know -- either way, Ambient should be feeding the data back to you in the data stream that it's providing....