unterwulf / egctl

EnerGenie EG-PMS-LAN control utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for EG-PMS-WLAN (quickfix)

joanandk opened this issue · comments

Hi
With a small modification, the program works with EG-PMS-WLAN too.
Switching works out of the box, status is shown as "unknown". One has to select protocol v2.1 and modify
#define V21_STATE_ON 0x41
#define V21_STATE_OFF 0x82
to
#define V21_STATE_ON 0x51
#define V21_STATE_OFF 0x92

This modification breaks the EG-PMS2-LAN, but if someone is only using the WLAN module, can easily use this.

BR

Thank you for the information. It may be worth adding one more protocol value. Where did these new constants come from?

As the program without modification came up with this message:

socket 1 - unknown
socket 2 - unknown
socket 3 - unknown
socket 4 - unknown

I switched on socket 3 and took a look at what came back. So I found out the values.

Switching on and off works out of the box, so that portion stays the same.

Might be coincidence, but the last nibble might be the value of interest? (0xn1 = on and 0xn2 = off).

BR

I added a new protocol pmswlan according to your information (see commit b525716). Let me know if it works for your EG-PMS-WLAN.