Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GW1100A #7

Open
slayer1551 opened this issue Oct 6, 2021 · 14 comments
Open

Add support for GW1100A #7

slayer1551 opened this issue Oct 6, 2021 · 14 comments
Labels
enhancement New feature or request

Comments

@slayer1551
Copy link

Is your feature request related to a problem? Please describe:
No current support for GW1100A

Describe the solution you'd like:
If you can add support for the GW1100A station. The sensors work but it does not show the temperature / humidity / pressure from the base station

Additional context:
I've manually edited the EcowittPlatform.js to add the model GW1100A and it showed up fine in homebridge for me

const modelInfo = dataReport?.model.match(/(HP2551CA|GW1000)_(.*)/);

case 'GW1000': this.baseStationInfo.hardwareRevision = dataReport.stationtype; this.baseStationInfo.firmwareRevision = stationTypeInfo[2]; if (!this.config?.thbin?.hide) { this.addSensorType(true, 'GW1000'); } break;

@slayer1551 slayer1551 added the enhancement New feature or request label Oct 6, 2021
@spatialdude
Copy link
Owner

Thanks @slayer1551 I have a GW1000 and a HP2551, but don't yet have a GW1100A . In the meantime, would you be able to help out with what the data payload looks like from the log file? You can see details what I mean in this comment #2 (comment)

@slayer1551
Copy link
Author

Thanks @slayer1551 I have a GW1000 and a HP2551, but don't yet have a GW1100A . In the meantime, would you be able to help out with what the data payload looks like from the log file? You can see details what I mean in this comment #2 (comment)

[16/10/2021, 16:59:07] [Ecowitt] Data report: { "PASSKEY": "xxx", "stationtype": "GW1100A_V2.0.3", "dateutc": "2021-10-16 15:56:10", "tempinf": "71.6", "humidityin": "53", "baromrelin": "29.976", "baromabsin": "29.976", "soilmoisture1": "54", "soilbatt1": "1.5", "freq": "868M", "model": "GW1100A" }

@spatialdude
Copy link
Owner

Thanks @slayer1551 I'll take a look at what's going in the handling with the differences in the data reports.

@tragnar
Copy link

tragnar commented May 11, 2022

Hey @spatialdude I added support for the GW1100A. Right now I have the code in a local branch, I could push it if you want?

@webpablo
Copy link

I just received a GW1100B. Hopefully this can get dropped in too.

@bc-rbennion
Copy link

Hi @tragnar . Could you show me the mods you made to get the GW1000A working? I am in the same boat. Thanks.

@tragnar
Copy link

tragnar commented Jul 13, 2022 via email

@tomkinsc
Copy link

I have PR #15 open to add support for the GW1100 gateway, and just altered the regex to match either version A or B (also adds support for the WH40 rainfall sensor):

https://github.com/spatialdude/homebridge-ecowitt/pull/15/files#diff-bad50ce3adb10bd143450c001444e8448375a557ff65e7fc325b75f9b53a8899R175-R176

@bc-rbennion
Copy link

thanks @tomkinsc !

@kubajzek
Copy link

@tomkinsc how do I install your PR on rpi? thanks!

@tomkinsc
Copy link

tomkinsc commented Nov 22, 2022

@kubajzek,

Ideally @spatialdude will review the PR #15 and merge it or a derived version so the added functionality is available via the 'official' homebridge-ecowitt package in the main Homebridge plugin distribution channel, but you can install my modified version manually.

I'm not much of a node person, so I'm not sure how idiomatic this may be, but what I did is more or less:

# (connect via ssh to your rpi)

# make a subdir in user's home directory to store git repositories like the one for the fork of homebridge-ecowitt
mkdir /home/$(whoami)/git-repositories

# enter said subdirectory
cd /home/$(whoami)/git-repositories

# clone only the branch with modifications, and only the most recent state
git clone --depth 1 --branch ct-add-WH40-GW1100 --single-branch https://github.com/tomkinsc/homebridge-ecowitt.git

# enter the cloned repo
cd homebridge-ecowitt

# install module dependencies
npm install

# build the module
npm run build

# enter directory where homebridge modules are located
cd /var/lib/homebridge/node_modules

# move the directory containing the old homebridge-ecowitt module
sudo mv homebridge-ecowitt homebridge-ecowitt-orig

# create a symbolic link from the git repo version
sudo -u homebridge ln -s /home/$(whoami)/git-repositories/homebridge-ecowitt homebridge-ecowitt

# restart homebridge (will take a moment and likely emit no output)
sudo systemctl restart homebridge

Of note is that if you upgrade Homekit, the homebridge-ecowitt-orig module backup directory created above will be removed. It's easy enough to re-add from the original Homebridge plugin manager once the symlink to the customized version is removed via:

sudo -u homebridge unlink /var/lib/homebridge/node_modules/homebridge-ecowitt

Important: To anyone considering installing the modified plugin (or anything from a secondary source), I'd encourage reviewing the changes to the code before following the steps above.

@steffmatj
Copy link

steffmatj commented May 4, 2023

Hi, did @spatialdude already merge the changed code from @tomkinsc, or do I have to make the mentioned steps myself to get the GW1100 working?

@bytman
Copy link

bytman commented Jun 6, 2023

I have also the Gw1100, no error in the log, but the plugin wan´t create any device

@locasticdeveloper
Copy link

any updates on this. anyone? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

10 participants