itsmepetrov / homebridge-zigbee

ZigBee Platform plugin for HomeBridge
https://itsmepetrov.github.io/homebridge-zigbee/
MIT License
106 stars 36 forks source link

Osram Smart+ Plug #45

Open harbri opened 4 years ago

harbri commented 4 years ago

I'm trying to add the Osram Smart+ Plug but it doesn't get recognized. Can it be added to the supported devices? Here's info from zigbee.db:

{"id":3,"type":"Router","ieeeAddr":"0x7cb03eaa0a0040e8","nwkAddr":56725,"manufId ":48042,"manufName":"OSRAM","powerSource":"Mains (single phase)","modelId":"Plug 01","epList":[3],"status":"online","joinTime":1569765969,"endpoints":{"3":{"pro fId":49246,"epId":3,"devId":16,"inClusterList":[0,3,4,5,6,2820,4096,64527],"outC lusterList":[25],"clusters":{}}},"_id":"Pic8EoS7oamFW8dy"} {"id":3,"type":"Router","ieeeAddr":"0x7cb03eaa0a0040e8","nwkAddr":56725,"manufId ":48042,"manufName":"OSRAM","powerSource":"Mains (single phase)","modelId":"Plug 01","epList":[3],"status":"online","joinTime":1569765969,"endpoints":{"3":{"pro fId":49246,"epId":3,"devId":16,"inClusterList":[0,3,4,5,6,2820,4096,64527],"outC lusterList":[25],"clusters":{"64527":{"dir":{"value":1},"attrs":{"0":0}},"genBas ic":{"dir":{"value":1},"attrs":{"zclVersion":1,"appVersion":12,"stackVersion":2, "hwVersion":1,"manufacturerName":"OSRAM","modelId":"Plug 01","dateCode":"2014033 1DEOS****","powerSource":1,"deviceEnabled":1,"swBuildId":"V1.04.12"}},"genIdenti fy":{"dir":{"value":1},"attrs":{"identifyTime":0}},"genGroups":{"dir":{"value":1 },"attrs":{}},"genScenes":{"dir":{"value":1},"attrs":{"count":0,"currentScene":0 ,"currentGroup":0,"sceneValid":0,"nameSupport":0}},"genOnOff":{"dir":{"value":1} ,"attrs":{"onOff":1,"globalSceneCtrl":1,"onTime":0,"offWaitTime":0}},"genOta":{" dir":{"value":2},"attrs":{}},"haElectricalMeasurement":{"dir":{"value":1},"attrs ":{"measurementType":8,"activePower":400}},"lightLink":{"dir":{"value":1},"attrs ":{}}}}},"_id":"Pic8EoS7oamFW8dy"}

Olepir commented 4 years ago

Check pull requests https://github.com/itsmepetrov/homebridge-zigbee/pull/44#issue-319954142

breadbakerman commented 4 years ago

I can confirm that BobbyTs device support for the Osram plug works like a charm. And it is far more responsive than going the hue bridge route.

OliverGruenberg commented 4 years ago

if I get it right, all what's necessary is adding the content of

https://github.com/itsmepetrov/homebridge-zigbee/pull/44/commits/ee028c8054c201b9f447941c5e3b546cf53f9694

into "lib/devices/osram.smartplus_plug.js"!?

confirmed – it works prefect!