bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

showAs - doesn't seem to change device type e.g. garage #431

Closed PencilDH closed 1 year ago

PencilDH commented 1 year ago

What issue do you have? Please be as thorough and explicit as possible.

I tried chaniging showAs to many things as in the examples but it doesn't seem to have an effect on device type and always shows up as switch in homekit and homebridge.

Details of your setup.

rpi

v10.3.0

4CH

Please paste any relevant logs below.

            "name": "eWeLink",
            "username": "xxx@xxx.xxx",
            "password": "yyy-zzz-zzz",
            "mode": "auto",
            "debug": true,
            "language": "en",
            "multiDevices": [
                {
                    "label": "Front Gate",
                    "deviceId": "1001722771",
                    "deviceModel": "4ch",
                    "showAs": "garage",
                    "ipAddress": "192.162.68.21",
                    "overrideLogging": "default"
                }
            ],
            "platform": "eWeLink"

image

bwp91 commented 1 year ago

Hi @PencilDH

I assume that there is no change to the accessory type even after restarting Homebridge? and perhaps force closing and re-opening the Home app?

PencilDH commented 1 year ago

Hi Ben,

correct, no change, process followed…

  1. Change accessory type in config
  2. Restart homebridge
  3. Force close home.app on iPhone

I would at least expect to see the correct accessory type in homebridge UI under accessories but it’s a switch there too

PencilDH commented 1 year ago

Few more questions:

  1. should I do any special setup in the eWeLink app?
  2. also tried to run the plunging as a child plugin but it still showed up as switches.

I will try a clean install of homebridge on a different server and see if this works maybe there is something messed up with my instance or rpi?

Any advice is welcomed

Screenshot 2022-11-23 at 07 45 04
bwp91 commented 1 year ago

should I do any special setup in the eWeLink app?

Nope

also tried to run the plunging as a child plugin but it still showed up as switches.

Shouldn't make a difference.

I just tried this with my homebridge instance and a 4-channel device - shows up immediately as a garage on my accessory page.

PencilDH commented 1 year ago

On a clean instal on my mac it seems to work but has some problems when I change the device type. I think the issue is that i need to purge.

./homebrige/accesories 
./homebrige/persits
./homebrige/homebridge-ewelink

and restart 2 times the homebridge service when making a change of the device type "showAs": "xxx"