plasticrake / homebridge-tplink-smarthome

TP-Link Smarthome Plugin for Homebridge
MIT License
480 stars 70 forks source link

Still not available in Homekit #30

Closed ZookeRooi closed 7 years ago

ZookeRooi commented 7 years ago

Thanks for all the effort in solving my issue which I mentioned a few weeks ago #24 . However, I have tried all your tips and tricks but still it is not available in Homekit.

When running Homebridge in debug-mode, I get the following reply: [9/20/2017, 6:05:54 AM] [TPLink.API] client.startDiscovery(): from: {"system":{"get_sysinfo":{"err_code":0,"sw_ver":"1.0.8 Build 151101 Rel.24452","hw_ver":"1.0","type":"smartplug","model":"HS100(EU)","mac":"50:C7:BF:09:1D:AE","deviceId":"80063FDA61E781771E4B3CA9768EA50A176705F1","hwId":"22603EA5E716DEAEA6642A30BE87AFCA","fwId":"BFF24826FBC561803E49379DBE74FD71","oemId":"812A90EB2FCF306A993FAD8748024B07","alias":"TV Lamp","dev_name":"Wi-Fi Smart Plug","icon_hash":"","relay_state":0,"on_time":0,"active_mode":"schedule","feature":"TIM","updating":0,"rssi":-77,"led_off":0,"latitude":51.576057,"longitude":5.458965}}} message: 192.168.1.130 [9/20/2017, 6:05:54 AM] [TPLink.API] client.startDiscovery(): Filtered out: TV Lamp (device), allowed device types: (["plug"])

I am able to control it using the Kasa-app.

Any clue what is going wrong here?

plasticrake commented 7 years ago

Yeah i see the issue. All the devices I've encountered have had the type be IOT.SMARTPLUGSWITCH but I see it is smartplug for you. So it doesn't know what type of device it is. I'll update the code to look for smartplug as well.

ZookeRooi commented 7 years ago

That would be great @plasticrake! Many thanks in advance!!

plasticrake commented 7 years ago

I just released a new version. Can you try now?

ZookeRooi commented 7 years ago

That's it @plasticrake! It is back! Thank you very much. You made my day!