garbled1 / homeassistant_ecowitt

Ecowitt Weather Station integration for homeassistant
Apache License 2.0
142 stars 70 forks source link

Ecowitt Wittboy support #107

Open mstefany opened 2 years ago

mstefany commented 2 years ago

I am trying to use Ecowitt Wittboy (GW2001) with Home Assistant, but some sensors (rain) are missing and this shows up in Home Assistant logs:

Logger: custom_components.ecowitt
Source: custom_components/ecowitt/__init__.py:274
Integration: Ecowitt Weather Station
First occurred: 11:12:29 (12580 occurrences)
Last logged: 23:43:48

Unhandled sensor type gain30_piezo value 0.100, file a PR.
Unhandled sensor type gain40_piezo value 0.100, file a PR.
Unhandled sensor type gain50_piezo value 0.100, file a PR.
Unhandled sensor type rfdata value [[1650577425,"905094960000A089BA62055709003FFF31E4E500DA33363057F661FEF973178E"]], file a PR.
Unhandled sensor type wh90batt value 3.20, file a PR.
warrenchin commented 2 years ago

@mstefany Strange that I didn't see "gainXX" in my Wittboy. Anyhow I have added 2 PRs: https://github.com/garbled1/homeassistant_ecowitt/pull/109 https://github.com/garbled1/pyecowitt/pull/7

You might want to try out my fork before it is merged: https://github.com/warrenchin/homeassistant_ecowitt

mstefany commented 2 years ago

Let me test it tonight and report back to you. Thank you for the PRs!

mstefany commented 2 years ago

Looks awesome, thank you!

image

cpuks commented 2 years ago

This might be related too? WH2600 with firmware 1.7.8 - there's an option to choose rain gauge - I don't have piezo but somehow after upgrading wifi app to 1.6.4 it started to spam logs: Logger: custom_components.ecowitt Source: custom_components/ecowitt/init.py:274 Integration: Ecowitt Weather Station First occurred: 19:49:14 (294 occurrences) Last logged: 20:36:43

Unhandled sensor type hrain_piezo value 0.000, file a PR. Unhandled sensor type drain_piezo value 0.000, file a PR. Unhandled sensor type wrain_piezo value 0.000, file a PR. Unhandled sensor type mrain_piezo value 0.000, file a PR. Unhandled sensor type yrain_piezo value 0.000, file a PR.

mstefany commented 2 years ago

I still get some errors though:

Logger: custom_components.ecowitt
Source: custom_components/ecowitt/__init__.py:274
Integration: Ecowitt Weather Station
First occurred: 25. dubna 2022 22:38:03 (15894 occurrences)
Last logged: 19:31:12

Unhandled sensor type gain20_piezo value 0.100, file a PR.
Unhandled sensor type gain30_piezo value 0.100, file a PR.
Unhandled sensor type gain40_piezo value 0.100, file a PR.
Unhandled sensor type gain50_piezo value 0.100, file a PR.
Unhandled sensor type rfdata value [[1651080671,"9050949600DB9F8A103D006700003FFFE4A88001E0353D51FF7FF20000738417"]], file a PR.

Even with your updated version.

christensonautohome commented 2 years ago

@mstefany & @warrenchin i'm looking at WittBoy too and notice all the screen prints i've seen for this in HA do not have values for Solar Radiation and UV index. Those are really the only two items I want to be sure are working. Can you confirm they work with the current fork https://github.com/warrenchin/homeassistant_ecowitt

ruudvddries commented 2 years ago

Interested in wittboy support for HA. Current main version is not displaying piezo rain (although set as main source in configuration of wittboy). I have no issues, it seems with UV and light sesnors in current version. These values are shown in HA.

christensonautohome commented 2 years ago

@ruudvddries not sure I understand you here? do you currently have Wittboy and try the fork or main branch install (HACS is the main branch)?

Sounds like the rain sensor on the wittboy doesn't record correctly on the main branch but the UV and solar radiation both work? Give the fork a try with a manual install. maybe that will pull in the rain sensor data you need.

Anto79-ops commented 2 years ago

hey thanks for your effors here!

May I ask a question abouth the Wittbot integration? I currently have my sensors integrated via the GW1100 gateway. I also have a Wittboy, is it possible that I can have two devices reporting with this fork? i.e. GW1100 and GW2000? I know you can enable the sensors that the GW1100 has in the GW2000, but I was wondering if I make 2 devices show up in this. thanks

warrenchin commented 2 years ago

@Anto79-ops I've never try that but I believe you can, just setup another ecowitt integration on different port.

Anto79-ops commented 2 years ago

Thanks very much. I may try it using a different port, say 4198, but I'd to wait for the release version of the Wittboy support for this integration, only because I'm would not know how to install this fork on HA. Any idea when it will be forked in?

ruudvddries commented 2 years ago

@christensonautohome

Hi, yes I have Wittboy connected to the main ecowitt branch from this repo thourgh installation from HACS. Only issue I have is that Piezo data is not dislayed, it stayed at 0.0mm during and after rain. I have set piezo as main source for rain data in the GW2000 settings. Currently Piezo data is shown in my HA installation as unavailable (all piezo related data).

As mentioned, all other data from sensors within the WittBoy are reported correctly.

I will try to find out how to install the branch version of this repo in HA.

regards,

Ruud

adrummond-github commented 2 years ago

I just integrated my Ecowitt Wittboy into HA and am seeing the same issues (no rain sensors, piezo, battery etc within HA). Same error messages in the logs. I'm publishing the data to Weather Underground as well via the EcoWitt gateway and thats working fine (rain sensor). My gateway is running Firmware: GW2000B_V2.1.4

Logger: custom_components.ecowitt Source: custom_components/ecowitt/init.py:274 Integration: Ecowitt Weather Station First occurred: 3:22:37 PM (4758 occurrences) Last logged: 10:44:58 PM

Unhandled sensor type mrain_piezo value 2.937, file a PR.
Unhandled sensor type yrain_piezo value 2.937, file a PR.
Unhandled sensor type ws90cap_volt value 5.2, file a PR.
Unhandled sensor type ws90_ver value 119, file a PR.
Unhandled sensor type wh90batt value 3.18, file a PR.
paulblakely commented 2 years ago

Also seeing the same issue with a new Wittboy on version 0.7. Unsure if this is useful, but I'll add it here anyways.

Logger: custom_components.ecowitt Source: custom_components/ecowitt/init.py:274 Integration: Ecowitt Weather Station First occurred: June 3, 2022, 11:56:20 PM (165 occurrences) Last logged: 12:10:34 AM

Unhandled sensor type mrain_piezo value 0.000, file a PR. Unhandled sensor type yrain_piezo value 0.000, file a PR. Unhandled sensor type ws90cap_volt value 4.4, file a PR. Unhandled sensor type ws90_ver value 119, file a PR. Unhandled sensor type wh90batt value 3.20, file a PR.

antonsarg commented 1 year ago

@warrenchin Thanks a lot. Your fork works perfectly. Too bad that it hasn't been merged yet.

mattdevo1 commented 1 year ago

@mstefany Strange that I didn't see "gainXX" in my Wittboy. Anyhow I have added 2 PRs: #109 garbled1/pyecowitt#7

You might want to try out my fork before it is merged: https://github.com/warrenchin/homeassistant_ecowitt

Thank you @warrenchin! Your fork seems to work great for my new Wittboy. Hopefully this gets merged soon.