[RE-RELEASE] EcoWitt and Wittboy Weather Stations And Sensors (Local)

This i not really a Hubitat question but i feel i would get a better response here than the ecowitt people.

I have the ecowitt integrated into my Hubitat. I did not use their app to set it up. I didnt eve use their instructions to setup.. i created a dhcp reservation for the MAC address and then went to the web interface to configure.

Everything works. Ive built some dashboards in Hubitat. But I was thinking on using the ecowitt app to get a fancier display of the data. If i do this i have to open the firewall to allow ecowitt out and af far as i can tell i have to make an ecowitt user account.

My question here is if i do this what do i expose other than weather data? Will the location of my weather station be put on a public map?

I think the app does require a user account, not sure what extra the app gives you? There is a toggle asking if you want your data made public. However I saw the app update itself without going through Google Play Store..

I’m assuming you mean graphing of historical data?

It’s possible to see live data the sensors are reporting to the gateway from the ecowitt app without setting up the whole personal weather station thing that uploads to their servers.

1 Like

ok. i was avoiding creating an account because i didnt want to send any data. if i create an account and use the app doesnt that provide data to ecowitt through the app?

in the ecowitt sensors device info page i enabled HomeKit integration. all the sensors now show in HomeKit but i have 2 leak detections. one on the RF sensor and one on the ambient sensor. since the RF sensor is outside i dont know why there would be a leak detection on it. unless thats rain and the sensor/HomeKit is mis identifying it. the ambient sensor is inside where there is no leaks. so i dont know why that would have a leak detection either.

has any of you experienced this or know why its happening?

I’m sure some data sharing is unavoidable.

But you don’t have to upload to the ecowitt.net servers as a personal weather station unless you agree to it and set that up in the app.

I use Ecowitt’s WS View app, and AFAIK the live view of sensor data is a local connection between the app on my phone and the ecowitt WiFi gateway on my LAN. See partial screenshot below.

Hubitat does not excel at graphing sensor data to show historical trends, but there are some basic options.

1 Like

yes. this is why i was looking into the app

FWIW since my Hubitat hub can not only receive data locally from the ecowitt gateway, but also send it on locally to home assistant, I actually have some graphs of my ecowitt sensors there. Home Assistant’s graphing is more intuitive.

1 Like

@john66public - in case you want to do this ...

This feature is one reason I’ve recently got HA back up and running in my home. Hubitat really needs a native graphing solution too, it makes troubleshooting rules and understanding your home environment a lot easier.

1 Like

ok i believe i have the 3 new attributes integrated into stock github version and pull requests created.

4 Likes

The Ecowitt client has a "state" that tells whether it's currently raining or not. Example:
image
Is this value available to Habitat somewhere through the integration? I can't find it.

Thanks!

Jay

its the new attribute that i added above. raining but hasnt been fully integrated by @sburke781 yet..

1 Like

New Release - 1.34.14 - WittBoy Raining Status
(thanks to @kahn-hubitat for making this happen)

The EcoWitt drivers now include the rain status from the ws90 (Wittboy) weather station. This is recorded as a raining attribute on the weather station device with values of true or false. For those wanting to use this in automations, the raining attribute is recorded as a String.

This change also introduces the firmware and capacitor voltage attributes from the Wittboy weather stations.

See some more of @kahn-hubitat 's comments about the changes here:

For those interested, these changes are now available from HPM and in the GiutHub repository (@wiegout , @eduardo )

5 Likes

Thanks also to @xcguy for spotting a bug in the 10A template definition that was missing a closing italic tag, this has now been updated.

2 Likes

ive also noticed that in the HomeKit a air quality setting was added. there is no air quality sensor in the WS90 or the hub. to me this must be a driver programming issue.

Not an issue as such, more just the approach that was taken when originally developing these drivers. I could wrong about the intent here (I didn't develop these originally), but this is at least my understanding, which I agree with as an approach. This is essentially a trade-off between the effort in development of the drivers and the effect this has in how a device is presented to the platform, and I can't see a way around this at the moment unfortunately (happy for any ideas). I'll do my best to try and explain....

There are two drivers that make up this particular EcoWitt integration in HE, a gateway driver and a sensor driver. In very simple terms, the gateway driver handles receiving the data from the gateway, setting up sensor devices in HE as required, and passing on data to the relevant sensor HE device. The sensor driver takes the different data points (readings) it receives in HE and assigns it to the correct attribute, such as temperature, humidity and so on.

Pulling back from this specific set of drivers, in the HE platform in general, a driver needs to define the capabilities of the device up front in the code, i.e. a device using this driver is a temperature device or an air quality device (or both). This is what drives device selections in the HE UI, but also tells HE (and other systems), what data and commands to expect when dealing with the device in situations like creating an automation or displaying the device on a dashboard.

Due to the varied and changing nature of products offered by EcoWitt and multi-sensor devices in particular, the sensor driver was developed to cover the breadth of capabilities offered by supported EcoWitt devices, those being:

    capability "Battery";
    capability "Temperature Measurement";
    capability "Relative Humidity Measurement";
    capability "Pressure Measurement";
    capability "Ultraviolet Index";
    capability "Illuminance Measurement";
    capability "Water Sensor";
    capability "Carbon Dioxide Measurement";
    capability "Air Quality";

If you think about outdoor weather stations in particular, there can be a range of combinations of sensors available. On the flip side, temperature sensors in particular can exist in a range of EcoWitt devices. To develop a separate driver for each combination of capabilities available and managing the selection of the resulting drivers for the device would make the task a lot bigger in maintaining the code. Similarly, creating separate drivers for each capability listed above and creating HE devices for each sensor linked to an EcoWitt device would generate a mess of devices in HE, not to mention needing to maintain the matrix of capabilities supported by devices.

I can understand the effect this has in how a device is presented in HE and other platforms, but I just can't see a way around it.

I'm not sure how that explains why an air quality sensor and a leak detection sensor that doesn't show up in ecowitt or HE, shows up in HomeKit when ecowitt driver is HomeKit enabled.

I have the WS90 and WH25.

One part I did leave out is that the attributes relating to a capability do not show up in HE if they are not populated by the driver. So I would not expect EcoWitt or HE to show any details about readings relating to these capabilities, e.g. a PM2.5 reading or that a leak was detected, but HE will still tell HomeKit that the device has these capabilities (Water Sensor and Air Quality), which HomeKit must then use to drive how the device is presented in that platform.

ok. any idea why the leak detection says i have a leak? the ws90 is outside and the WH25 is inside where there is no leaks. but both of them report leaks. can the default setting be set to section = no?