dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

[Request Device Support] Samsung SmartPlug 2019 Model ID: 7A-PL-Z-J3 #2121

Closed smartypantsuk closed 4 years ago

smartypantsuk commented 4 years ago

I have just purchased a 2019 Smartthings Smart Plug which supports power monitoring. Deconz treats it as an on/off plug and works fine in that respect, but I'd love to get power monitoring working. These plugs are a reasonable price without breaking the bank so would be brilliant if the energy side worked.

I have a feeling that these plugs could be manufacturered by Innr, but I aren't certain. The manufacturer code is 0x1168, which according to this page is an Innr reference, Innr2 to be precise Perhaps Innr use the '2' designation for products they manufacturer but release under a difference brand?..

They are almost identical to the Innr plug with size, shape and power switch location, but there are some tiny differences regarding depth and bevel at the front lip. The build quality is identical to the Innr device.

I have attached the important stuff, If i've missed anything please advise.

Model ID: 7A-PL-Z-J3

Thank you

node node-info basic-cluster simple-metering-cluster electrical-measurment-cluster

and some debug info, in which I turned the smart plug on and off:

debug.txt

and perhaps there is some information from this smartthings github page which mentions the same model/make of ZB-ONOFFPlug-D0005 and LDS

SmartThingsPublic

smartypantsuk commented 4 years ago

Guys, what should I say. adding support for the EU plug and everything works as it should.

Can you guys try putting a load on the plug (e.g. charge a mobile) and have a look at deconz GUI, electrical measurement, cluster 050B and see, if you get any values? That should at least give us some insights if anything is measured at all.

However, my Samsung plug is kinda useless to me. Simple metering is missing and upon swithcing, I feel the fuse is popping right out with it. Keep sticking with the inner SP120. Also, less than half the price here.

I did put a few hundred watt on the plug on my last attempt. Im gonna try again tomorrow and report back.

SwoopX commented 4 years ago

@djashjones thanks for the feedback. Asking once again not only to verify that measurement works with your plug but also as the EU version doesn't support attribute reporting but only polling (which is kinda annoying). But that would also explain @smartypantsuk feedback here.

djashjones commented 4 years ago

Sorry, I'm not being much use and I'm running it on stock as I'm using Deconz in HASS. IMG_0137

smartypantsuk commented 4 years ago

SwoopX, something has changed.... I am getting readings of sorts. Stayed tuned!

SwoopX commented 4 years ago

Fingers crossed. Anyhow, I've issued a pull request to get the changes in.

Most important is that you somehow get the sensors in. What still might be worth a try is once the plug is joined, put a load on it and search for sensors once again. Worked for the EU version before I added the support.

smartypantsuk commented 4 years ago

Guys, what should I say. adding support for the EU plug and everything works as it should.

Can you guys try putting a load on the plug (e.g. charge a mobile) and have a look at deconz GUI, electrical measurement, cluster 050B and see, if you get any values? That should at least give us some insights if anything is measured at all.

However, my Samsung plug is kinda useless to me. Simple metering is missing and upon swithcing, I feel the fuse is popping right out with it. Keep sticking with the inner SP120. Also, less than half the price here.

Tonight I tried again, but for whatever reason deCONZ was not playing nice with the USB stick. So I removed and reinstalled deCONZ, recompiled the plugin, and deCONZ starting working again. The smart plug was still installed from previous, so I put a load of approx 1000W (1kW) on the plug using a small heater.

I still cannot get the READ_CONFIG button to work, it just errors like before. However, both the 0x0000 (Current Summation Delivered) and 0x050B (Electrical Measurement and attribute) are giving readings now, and both alter as one would expect, i.e. the summation value increases steadily and the electrical measurement value reads reasonably accurately respective of the load applied. While I haven't checked the accuracy with my Fluke equipment, I did try a cheap plug in wattage meter inline with the smartplug to give me something to compare to.

1000w (1kW) rated heater: Plug in Meter read = 1068w Smartplug read = 1074w

However, what I could not get working was the measurements via the Rested plugin for Firefox. The Smartplug still appeared under 'Lights' not sensors and there was no additional reading from before. The only thing I could try is removing and re-adding the smartplug once more??

SwoopX commented 4 years ago

Most important is that you somehow get the sensors in. What still might be worth a try is once the plug is joined, put a load on it and search for sensors once again. Worked for the EU version before I added the support.

Already played that card?

smartypantsuk commented 4 years ago

Most important is that you somehow get the sensors in. What still might be worth a try is once the plug is joined, put a load on it and search for sensors once again. Worked for the EU version before I added the support.

Already played that card?

Last time I tried this I had a dehumidifier running as a load, which puts around 150w-200w on the plug, so that should have worked okay. But obviously something has changed so I'll remove it and rejoin again in a few minutes, just need to feed the whinging baby 👎

So is it enough to remove the plug via Phoscon, that's removing it directly from deCONZ right?

SwoopX commented 4 years ago

jop

SwoopX commented 4 years ago

Just to be clear. First join as light and afterwards search for new sensors.

smartypantsuk commented 4 years ago

Just to be clear. First join as light and afterwards search for new sensors.

Yup 👍

smartypantsuk commented 4 years ago

Am I supposed to put the plug into join mode again when searching for sensors? Because I don't think I can without factory resettting the plug again. It goes into join after a reset.

SwoopX commented 4 years ago

no, that's fine. It must not be in join mode while searching for sensors.

smartypantsuk commented 4 years ago

Well unfortunately I've tried everything I can think of and I can't get it listed in sensors, which is a **** because we must be so close.

I tried:

Removed plug with phoscon Factory reset the plug which put it in join mode Plug was switched on with load of 1000w on it Searched for lights in phoscon, let finish search. Searched for sensors in phoscon, let finish search. Plug not listed under sensors, only lights.

I also tried the following:

Removed plug with phoscon Factory reset the plug which put it in join mode Plug was switched on with load of 1000w on it Searched for lights in phoscon, let finish search, at which point plug was listed under lights. Factory reset the plug which put it in join mode, but did not remove from Phoscon <----- Searched for sensors in phoscon, let finish search. Plug not listed under sensors, only lights.

Where is the emoticon for crying when you need it...

Sensor search debug:

21:54:14:457 HTTP Server listen on address 0.0.0.0, port: 80, root: /usr/share/deCONZ/webapp/ 21:54:14:462 CTRL. 3.22.021:54:15:449 ZCLDB init file /home/dan/.local/share/dresden-elektronik/deCONZ/zcldb.txt 21:54:15:588 parent process bash 21:54:15:588 gw run mode: normal 21:54:15:588 GW sd-card image version file does not exist: /home/dan/.local/share/dresden-elektronik/deCONZ/gw-version 21:54:15:589 DB sqlite version 3.22.0 21:54:15:589 DB PRAGMA page_count: 30 21:54:15:589 DB PRAGMA page_size: 4096 21:54:15:589 DB PRAGMA freelist_count: 0 21:54:15:589 DB file size 122880 bytes, free pages 0 21:54:15:589 DB PRAGMA user_version: 6 21:54:15:589 DB cleanup 21:54:15:590 DB create temporary views 21:54:15:595 don't close database yet, keep open for 900 seconds 21:54:15:596 started websocket server at port 8888 21:54:15:597 found node plugin: libde_rest_plugin.so - REST API Plugin 21:54:15:599 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin 21:54:15:606 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin 21:54:15:701 Device firmware version 0x26490700 21:54:15:707 unlocked max nodes: 200 21:54:15:837 Device protocol version: 0x010B 21:54:15:856 new node - ext: 0x00212effff04fc3b, nwk: 0x0000 21:54:15:901 don't close database yet, keep open for 900 seconds 21:54:15:902 LightNode 1: Color temperature light 1 added 21:54:15:905 don't close database yet, keep open for 900 seconds 21:54:15:905 LightNode 2: Color temperature light 2 added 21:54:15:911 don't close database yet, keep open for 900 seconds 21:54:15:911 LightNode 3: Color temperature light 3 added 21:54:15:924 don't close database yet, keep open for 900 seconds 21:54:15:924 LightNode 4: Dimmable light 4 added 21:54:15:927 SensorNode 3 set node 0x001788010635b4d3 21:54:15:933 SensorNode 2 set node 0x001788010670ad57 21:54:15:938 don't close database yet, keep open for 900 seconds 21:54:15:939 LightNode 5: Color temperature light 5 added 21:54:15:943 don't close database yet, keep open for 900 seconds 21:54:15:943 LightNode 6: Color temperature light 6 added 21:54:15:948 SensorNode 4 set node 0x001788010637f83f 21:54:15:956 don't close database yet, keep open for 900 seconds 21:54:15:956 LightNode 9: Dimmable light 9 added 21:54:15:964 CTRL [d0:cf:5e:ff:fe:ff:dc:9d] not viable in zll.db, skip load cache (101) 21:54:15:965 CTRL [00:0d:6f:ff:fe:45:a0:bb] not viable in zll.db, skip load cache (101) 21:54:15:965 CTRL [00:17:88:01:04:f2:72:7d] not viable in zll.db, skip load cache (101) 21:54:15:966 CTRL [00:15:8d:00:03:f0:fd:50] not viable in zll.db, skip load cache (101) 21:54:15:966 CTRL [00:15:8d:00:03:f1:00:3b] not viable in zll.db, skip load cache (101) 21:54:16:070 Current channel 25 21:54:16:092 CTRL got nwk update id 0 21:54:16:098 CTRL ANT_CTRL 0x03 21:54:16:140 Device protocol version: 0x010B 21:54:16:223 Current channel 25 21:54:16:242 CTRL got nwk update id 0 21:54:16:249 CTRL ANT_CTRL 0x03 21:54:16:547 UPNP socket not bound, state: 0 21:54:20:900 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26490700.bin.GCF 21:54:20:900 GW firmware version: 0x26490700 21:54:20:900 GW firmware version is up to date: 0x26490700 21:54:21:639 Announced to internet http://dresden-light.appspot.com/discover 21:54:34:887 new node - ext: 0xccccccfffe6e2f7d, nwk: 0x3DD9 21:54:35:366 new node - ext: 0x00158d0003f0fd50, nwk: 0x49E3 21:54:35:610 created username: 3F430DA686, devicetype: Phoscon#B1666x942 21:54:37:552 New websocket 127.0.0.1:46232 (state: 3) 21:54:39:862 don't close database yet, keep open for 900 seconds 21:54:44:139 Websocket disconnected 127.0.0.1:46232 (state: 0) 21:54:45:778 New websocket 127.0.0.1:46240 (state: 3) 21:54:45:881 saved node state in 1 ms 21:54:45:931 sync() in 49 ms 21:54:56:363 send permit join, duration: 59 21:54:58:308 CTRL skip polling while permit join is set 21:54:58:327 0x3DD9 nwk changed to 0xA0EF 21:54:58:327 device announce 0xCCCCCCFFFE6E2F7D (0xA0EF) mac capabilities 0x8E 21:54:58:327 device announce 0xCCCCCCFFFE6E2F7D (0xA0EF) mac capabilities 0x8E 21:54:58:516 DB UPDATE device_descriptors SET data = x'01408e6811525200002c520000', timestamp = 1577742898 WHERE device_id = (SELECT id FROM devices WHERE mac = 'cc:cc:cc:ff:fe:6e:2f:7d') AND endpoint = 0 AND type = 2 21:54:58:516 DB INSERT INTO device_descriptors (device_id, endpoint, type, data, timestamp) SELECT id, 0, 2, x'01408e6811525200002c520000', 1577742898 FROM devices WHERE mac = 'cc:cc:cc:ff:fe:6e:2f:7d' 21:54:58:520 don't close database yet, keep open for 900 seconds 21:54:58:853 don't close database yet, keep open for 900 seconds 21:54:58:853 don't close database yet, keep open for 900 seconds 21:54:58:853 LightNode 8: Smart plug 8 added 21:54:58:854 DB UPDATE device_descriptors SET data = x'01040151000108000003000400050006000207040b82fc0303000a001900', timestamp = 1577742898 WHERE device_id = (SELECT id FROM devices WHERE mac = 'cc:cc:cc:ff:fe:6e:2f:7d') AND endpoint = 1 AND type = 4 21:54:58:854 DB INSERT INTO device_descriptors (device_id, endpoint, type, data, timestamp) SELECT id, 1, 4, x'01040151000108000003000400050006000207040b82fc0303000a001900', 1577742898 FROM devices WHERE mac = 'cc:cc:cc:ff:fe:6e:2f:7d' 21:54:58:860 don't close database yet, keep open for 900 seconds 21:54:59:011 DB UPDATE device_descriptors SET data = x'f2e0a161000000012100', timestamp = 1577742899 WHERE device_id = (SELECT id FROM devices WHERE mac = 'cc:cc:cc:ff:fe:6e:2f:7d') AND endpoint = 242 AND type = 4 21:54:59:011 DB INSERT INTO device_descriptors (device_id, endpoint, type, data, timestamp) SELECT id, 242, 4, x'f2e0a161000000012100', 1577742899 FROM devices WHERE mac = 'cc:cc:cc:ff:fe:6e:2f:7d' 21:54:59:017 don't close database yet, keep open for 900 seconds 21:54:59:164 ZDP discovery done in 838 ms21:54:59:783 Add to group response for light 8. Status:0x00, capacity: 0 21:55:08:859 saved node state in 1 ms 21:55:08:867 sync() in 8 ms 21:55:14:894 Current channel 25 21:55:14:901 CTRL got nwk update id 0 21:55:14:909 Device TTL 2613 s flags: 0x7 21:55:18:661 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 21:55:18:661 ZCL attribute report 0x001788010670AD57 for cluster 0x0001, ep 0x02 21:55:23:980 Bind response success for 0x001788010670ad57 cluster 0xFC00 21:55:56:226 Search sensors done 21:55:56:246 0xCCCCCCFFFE6E2F7D onOff 0 --> 1 21:55:57:863 don't close database yet, keep open for 900 seconds 21:55:59:356 send permit join, duration: 59 21:56:08:542 0x001788010472F097 error APSDE-DATA.confirm: 0xD0 on task 21:56:14:887 Current channel 25 21:56:14:894 CTRL got nwk update id 0 21:56:14:901 Device TTL 2553 s flags: 0x7 21:56:16:721 verified group capacity: 11 and group count: 1 of LightNode 0xccccccfffe6e2f7d 21:56:16:721 0xccccccfffe6e2f7d found group 0xFFF0 21:56:17:405 verified group capacity: 22 and group count: 3 of LightNode 0x00178801048405bc 21:56:17:405 0x00178801048405bc found group 0xFFF0 21:56:17:405 0x00178801048405bc found group 0x0001 21:56:17:405 0x00178801048405bc found group 0x0002 21:56:23:220 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 21:56:23:220 ZCL attribute report 0x001788010635B4D3 for cluster 0x0001, ep 0x02 21:56:28:302 Bind response success for 0x001788010635b4d3 cluster 0xFC00 21:56:52:405 ZCL attribute report 0x00158D0003F0FD50 for cluster 0x0000, ep 0x01 21:56:52:406 0x00158D0003F0FD50 extract Xiaomi special attribute 0xFF01 21:56:52:406 01 battery 2975 (0x0B9F) 21:56:52:406 04 unknown 5032 (0x13A8) 21:56:52:406 05 RSSI dB (?) 19 (0x0013) 21:56:52:406 06 LQI (?) 4294967296 (0x0100000000) 21:56:52:406 64 temperature 1731 21:56:52:406 65 humidity 7951 21:56:52:406 66 pressure 1017 21:56:52:406 0a unknown 65163 (0xFE8B) 21:56:58:949 ZCL attribute report 0x0017880104F2727D for cluster 0x0001, ep 0x02 21:56:59:264 Search sensors done 21:57:00:362 send permit join, duration: 59 21:57:09:716 0x001788010472F097 error APSDE-DATA.confirm: 0xD0 on task 21:57:14:895 Current channel 25 21:57:14:901 CTRL got nwk update id 0 21:57:14:908 Device TTL 2493 s flags: 0x7 21:57:34:172 DeviceAnnce of SensorNode: 0x001788010637F83F [1] 21:57:34:172 nwk address changed 0x0000 -> 0x5926 [2] 21:57:34:173 device announce 0x001788010637F83F (0x5926) mac capabilities 0x80 21:57:34:173 set fast probe address to 0x001788010637F83F (0x5926) 21:57:34:173 FP indication 0x0000 / 0x0013 (0x001788010637F83F / 0x5926) 21:57:34:173 ... (0x001788010637F83F / 0x5926) 21:57:34:173 device announce 0x001788010637F83F (0x5926) mac capabilities 0x80 21:57:34:175 discard double entry in binding queue (size: 4) for for 0x001788010637F83F, cluster 0x0001 21:57:34:175 discard double entry in binding queue (size: 4) for for 0x001788010637F83F, cluster 0xFC00 21:57:34:175 discard double entry in binding queue (size: 4) for for 0x001788010637F83F, cluster 0x0006 21:57:34:175 discard double entry in binding queue (size: 4) for for 0x001788010637F83F, cluster 0x0008 21:57:34:249 FP indication 0x0104 / 0x0001 (0x001788010637F83F / 0x5926) 21:57:34:249 ... (0x001788010637F83F / 0x5926) 21:57:34:249 discard double entry in binding queue (size: 4) for for 0x001788010637F83F, cluster 0xFC00 21:57:34:249 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 21:57:34:250 ZCL attribute report 0x001788010637F83F for cluster 0x0001, ep 0x02 21:57:34:950 Bind response success for 0x001788010637f83f cluster 0x0001 21:57:34:951 skip configure report for cluster: 0x0001 attr: 0x0021 of node 0x001788010637F83F (seems to be active) 21:57:34:968 Bind response success for 0x001788010637f83f cluster 0xFC00 21:57:34:976 Bind response success for 0x001788010637f83f cluster 0x0006 21:57:35:062 [1] get node descriptor for 0x001788010637f83f 21:57:35:419 FP indication 0x0000 / 0x8002 (0x001788010637F83F / 0x5926) 21:57:35:419 ... (0x001788010637F83F / 0x5926) 21:57:35:419 ZDP indication search sensors 0x001788010637F83F (0x5926) cluster 0x8002 21:57:35:419 ZDP indication search sensors 0x001788010637F83F (0x5926) clear timeout on cluster 0x8002 21:57:35:425 [2] get active endpoints for 0x001788010637f83f 21:57:35:966 FP indication 0x0000 / 0x8005 (0x001788010637F83F / 0x5926) 21:57:35:966 ... (0x001788010637F83F / 0x5926) 21:57:35:966 ZDP indication search sensors 0x001788010637F83F (0x5926) cluster 0x8005 21:57:35:967 ZDP indication search sensors 0x001788010637F83F (0x5926) clear timeout on cluster 0x8005 21:57:36:511 Bind response success for 0x001788010637f83f cluster 0x0008 21:57:36:525 FP indication 0x0104 / 0x0000 (0x001788010637F83F / 0x5926) 21:57:36:525 ... (0x001788010637F83F / 0x5926) 21:58:00:163 Search sensors done 21:58:00:864 don't close database yet, keep open for 900 seconds 21:58:01:358 send permit join, duration: 59 21:58:10:141 0x001788010472F097 error APSDE-DATA.confirm: 0xD0 on task 21:58:14:871 Current channel 25 21:58:14:875 CTRL got nwk update id 0 21:58:14:878 Device TTL 2433 s flags: 0x7 21:58:15:075 Websocket disconnected 127.0.0.1:46240 (state: 0) 21:58:16:946 New websocket 127.0.0.1:46332 (state: 3) 21:58:20:900 GW firmware version: 0x26490700 21:58:20:900 GW firmware version is up to date: 0x26490700 21:58:32:543 Websocket disconnected 127.0.0.1:46332 (state: 0) 21:58:34:428 saved node state in 1 ms 21:58:34:446 sync() in 17 ms 21:58:34:446 REST API plugin shutting down 21:58:34:448 sync() in 1 ms

smartypantsuk commented 4 years ago

Well I've tried again today for the last hour, doing things in every order concievble to my small brain, I can't seem to get the sensor showing up. My last attempt below, add using the 'add light' option then rescan. But I've done it every which way including 'add sensor' from fresh instead of add lights, I've tried altering the scan times, I've tried with load and without load, I've tried even using the open network button from the web interface, nothing changes. This must be something minor surely.

11:42:15:596 HTTP Server listen on address 0.0.0.0, port: 80, root: /usr/share/deCONZ/webapp/ 11:42:15:612 CTRL. 3.22.011:42:16:465 ZCLDB init file /home/dan/.local/share/dresden-elektronik/deCONZ/zcldb.txt 11:42:16:885 parent process bash 11:42:16:885 gw run mode: normal 11:42:16:885 GW sd-card image version file does not exist: /home/dan/.local/share/dresden-elektronik/deCONZ/gw-version 11:42:16:887 DB sqlite version 3.22.0 11:42:16:888 DB PRAGMA page_count: 30 11:42:16:888 DB PRAGMA page_size: 4096 11:42:16:888 DB PRAGMA freelist_count: 0 11:42:16:888 DB file size 122880 bytes, free pages 0 11:42:16:888 DB PRAGMA user_version: 6 11:42:16:889 DB cleanup 11:42:16:889 DB create temporary views 11:42:16:906 don't close database yet, keep open for 900 seconds 11:42:16:907 started websocket server at port 8888 11:42:16:913 found node plugin: libde_rest_plugin.so - REST API Plugin 11:42:16:917 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin 11:42:16:939 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin 11:42:17:100 Device firmware version 0x26490700 11:42:17:107 unlocked max nodes: 200 11:42:17:230 Device protocol version: 0x010B 11:42:17:282 new node - ext: 0x00212effff04fc3b, nwk: 0x0000 11:42:17:420 don't close database yet, keep open for 900 seconds 11:42:17:421 LightNode 1: Color temperature light 1 added 11:42:17:435 don't close database yet, keep open for 900 seconds 11:42:17:436 LightNode 2: Color temperature light 2 added 11:42:17:452 don't close database yet, keep open for 900 seconds 11:42:17:453 LightNode 3: Color temperature light 3 added 11:42:17:463 don't close database yet, keep open for 900 seconds 11:42:17:464 LightNode 4: Dimmable light 4 added 11:42:17:471 SensorNode 3 set node 0x001788010635b4d3 11:42:17:487 SensorNode 2 set node 0x001788010670ad57 11:42:17:497 don't close database yet, keep open for 900 seconds 11:42:17:497 LightNode 5: Color temperature light 5 added 11:42:17:508 don't close database yet, keep open for 900 seconds 11:42:17:508 LightNode 6: Color temperature light 6 added 11:42:17:517 SensorNode 4 set node 0x001788010637f83f 11:42:17:535 don't close database yet, keep open for 900 seconds 11:42:17:535 LightNode 9: Dimmable light 9 added 11:42:17:545 don't close database yet, keep open for 900 seconds 11:42:17:553 don't close database yet, keep open for 900 seconds 11:42:17:555 don't close database yet, keep open for 900 seconds 11:42:17:562 CTRL [d0:cf:5e:ff:fe:ff:dc:9d] not viable in zll.db, skip load cache (101) 11:42:17:563 CTRL [00:0d:6f:ff:fe:45:a0:bb] not viable in zll.db, skip load cache (101) 11:42:17:565 CTRL [00:17:88:01:04:f2:72:7d] not viable in zll.db, skip load cache (101) 11:42:17:566 CTRL [00:15:8d:00:03:f1:00:3b] not viable in zll.db, skip load cache (101) 11:42:17:566 CTRL [00:15:8d:00:03:f0:fd:50] not viable in zll.db, skip load cache (101) 11:42:17:802 Current channel 25 11:42:17:823 CTRL got nwk update id 0 11:42:17:829 CTRL ANT_CTRL 0x03 11:42:17:876 Device protocol version: 0x010B 11:42:17:952 Current channel 25 11:42:17:960 UPNP socket not bound, state: 0 11:42:17:971 CTRL got nwk update id 0 11:42:17:977 CTRL ANT_CTRL 0x03 11:42:22:279 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26490700.bin.GCF 11:42:22:280 GW firmware version: 0x26490700 11:42:22:280 GW firmware version is up to date: 0x26490700 11:42:22:972 Announced to internet http://dresden-light.appspot.com/discover 11:42:36:309 void zmController::nodeKeyPressed(deCONZ::zmNode*, int) node 0xccccccfffe6e2f7d deleted 11:42:36:534 reuse dead link (dead link container size now 0) 11:42:37:141 saved node state in 3 ms 11:42:37:150 sync() in 7 ms 11:42:42:685 APS-DATA.indication from unknown node 0x49E3 11:42:42:685 ZCL attribute report 0x0000000000000000 for cluster 0x0000, ep 0x01 11:42:49:563 new node - ext: 0xccccccfffe6e2f7d, nwk: 0x1741 11:42:54:333 don't close database yet, keep open for 900 seconds 11:42:59:137 saved node state in 3 ms 11:42:59:142 sync() in 4 ms 11:42:59:223 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 11:42:59:223 ZCL attribute report 0x001788010670AD57 for cluster 0x0001, ep 0x02 11:43:03:603 don't close database yet, keep open for 900 seconds 11:43:03:790 don't close database yet, keep open for 900 seconds 11:43:03:905 ZDP discovery done in 1196 ms11:43:14:133 saved node state in 3 ms 11:43:14:140 sync() in 7 ms 11:43:15:503 Current channel 25 11:43:15:509 CTRL got nwk update id 0 11:43:15:515 Device TTL 2522 s flags: 0x7 11:43:22:789 CTRL skip polling while permit join is set 11:43:53:492 0x0017880104115091 error APSDE-DATA.confirm: 0xE9 on task 11:43:54:181 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 11:43:54:181 ZCL attribute report 0x001788010635B4D3 for cluster 0x0001, ep 0x02 11:44:15:155 Current channel 25 11:44:15:161 CTRL got nwk update id 0 11:44:15:167 Device TTL 2463 s flags: 0x7 11:44:17:326 new node - ext: 0x00158d0003f0fd50, nwk: 0x49E3 11:44:22:131 don't close database yet, keep open for 900 seconds 11:44:22:429 verified group capacity: 22 and group count: 3 of LightNode 0x00178801048405bc 11:44:22:430 0x00178801048405bc found group 0xFFF0 11:44:22:430 0x00178801048405bc found group 0x0001 11:44:22:430 0x00178801048405bc found group 0x0002 11:44:23:181 verified group capacity: 22 and group count: 3 of LightNode 0x001788010472f097 11:44:23:181 0x001788010472f097 found group 0xFFF0 11:44:23:182 0x001788010472f097 found group 0x0002 11:44:23:182 0x001788010472f097 found group 0x0004 11:44:23:915 verified group capacity: 22 and group count: 3 of LightNode 0x0017880104aa7f0d 11:44:23:915 0x0017880104aa7f0d found group 0xFFF0 11:44:23:915 0x0017880104aa7f0d found group 0x0002 11:44:23:915 0x0017880104aa7f0d found group 0x0004 11:44:24:669 verified group capacity: 23 and group count: 2 of LightNode 0x0017880100df1065 11:44:24:669 0x0017880100df1065 found group 0xFFF0 11:44:24:670 0x0017880100df1065 found group 0x0003 11:44:25:464 verified group capacity: 22 and group count: 3 of LightNode 0x001788010472d5b2 11:44:25:465 0x001788010472d5b2 found group 0xFFF0 11:44:25:465 0x001788010472d5b2 found group 0x0002 11:44:25:465 0x001788010472d5b2 found group 0x0003 11:44:26:174 verified group capacity: 22 and group count: 3 of LightNode 0x0017880104c1a306 11:44:26:175 0x0017880104c1a306 found group 0xFFF0 11:44:26:175 0x0017880104c1a306 found group 0x0001 11:44:26:175 0x0017880104c1a306 found group 0x0002 11:44:26:945 verified group capacity: 23 and group count: 2 of LightNode 0x0017880104115091 11:44:26:946 0x0017880104115091 found group 0xFFF0 11:44:26:946 0x0017880104115091 found group 0x0002 11:44:27:139 saved node state in 3 ms 11:44:27:216 sync() in 76 ms 11:44:30:101 ZCL attribute report 0x0017880104F2727D for cluster 0x0001, ep 0x02 11:45:15:158 Current channel 25 11:45:15:165 CTRL got nwk update id 0 11:45:15:173 Device TTL 2403 s flags: 0x7 11:45:20:714 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 11:45:20:714 ZCL attribute report 0x001788010637F83F for cluster 0x0001, ep 0x02 11:45:28:554 created username: 708F0509CD, devicetype: Phoscon#B1041x589 11:45:33:313 don't close database yet, keep open for 900 seconds 11:45:34:036 New websocket 10.0.2.15:53476 (state: 3) 11:45:46:281 created username: D406290728, devicetype: deCONZ WebApp 11:45:51:132 don't close database yet, keep open for 900 seconds 11:46:05:218 new node - ext: 0x00158d0003f1003b, nwk: 0x87AF 11:46:10:135 don't close database yet, keep open for 900 seconds 11:46:10:262 Websocket disconnected 10.0.2.15:53476 (state: 0) 11:46:12:458 New websocket 10.0.2.15:53522 (state: 3) 11:46:15:136 saved node state in 4 ms 11:46:15:163 sync() in 26 ms 11:46:15:192 Current channel 25 11:46:15:199 CTRL got nwk update id 0 11:46:15:206 Device TTL 2343 s flags: 0x7 11:46:22:220 GW firmware version: 0x26490700 11:46:22:221 GW firmware version is up to date: 0x26490700 11:46:58:122 send permit join, duration: 59 11:46:59:101 CTRL skip polling while permit join is set 11:47:05:404 CTRL skip polling while permit join is set 11:47:07:125 don't close database yet, keep open for 900 seconds 11:47:07:126 don't close database yet, keep open for 900 seconds 11:47:07:127 LightNode 8: Smart plug 8 added 11:47:07:625 drop request to zombie (rx = 0) 11:47:11:455 CTRL skip polling while permit join is set 11:47:15:170 Current channel 25 11:47:15:176 CTRL got nwk update id 0 11:47:15:183 Device TTL 2283 s flags: 0x7 11:47:15:958 CTRL skip polling while permit join is set 11:47:15:981 DeviceAnnce of LightNode: 0xccccccfffe6e2f7d Permit Join: 42 11:47:15:981 device announce 0xCCCCCCFFFE6E2F7D (0x1741) mac capabilities 0x8E 11:47:15:981 device announce 0xCCCCCCFFFE6E2F7D (0x1741) mac capabilities 0x8E 11:47:16:023 delay sending request 4 dt 4 ms to 0xCCCCCCFFFE6E2F7D, cluster 0x0000 11:47:16:118 ZDP discovery done in 138 ms11:47:16:736 verified group capacity: 12 and group count: 0 of LightNode 0xccccccfffe6e2f7d 11:47:16:736 restore group 0xFFF0 for lightNode 0xccccccfffe6e2f7d 11:47:17:771 Add to group response for light 8. Status:0x00, capacity: 11 11:47:57:910 Search sensors done 11:47:59:124 send permit join, duration: 59 11:48:00:504 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 11:48:00:505 ZCL attribute report 0x001788010670AD57 for cluster 0x0001, ep 0x02 11:48:05:796 Bind response success for 0x001788010670ad57 cluster 0xFC00 11:48:15:148 Current channel 25 11:48:15:154 CTRL got nwk update id 0 11:48:15:160 Device TTL 2223 s flags: 0x7 11:48:21:071 Websocket disconnected 10.0.2.15:53522 (state: 0) 11:48:23:900 New websocket 10.0.2.15:53544 (state: 3) 11:48:55:448 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 11:48:55:448 ZCL attribute report 0x001788010635B4D3 for cluster 0x0001, ep 0x02 11:48:56:985 created username: 01D4AB2CA3, devicetype: deCONZ WebApp 11:48:58:857 Search sensors done 11:49:00:496 Bind response success for 0x001788010635b4d3 cluster 0xFC00 11:49:02:132 don't close database yet, keep open for 900 seconds 11:49:04:029 0xCCCCCCFFFE6E2F7D onOff 0 --> 1 11:49:12:122 send permit join, duration: 59 11:49:15:165 Current channel 25 11:49:15:171 CTRL got nwk update id 0 11:49:15:179 Device TTL 2163 s flags: 0x7 11:49:31:386 ZCL attribute report 0x0017880104F2727D for cluster 0x0001, ep 0x02 11:50:12:006 Search sensors done 11:50:13:125 send permit join, duration: 59 11:50:15:153 Current channel 25 11:50:15:161 CTRL got nwk update id 0 11:50:15:166 Device TTL 2103 s flags: 0x7 11:50:20:839 no button handler for: RWL021 ep: 0x02 cl: 0x0001 cmd: 0x0A pl[0]: 0x21 11:50:20:839 ZCL attribute report 0x001788010637F83F for cluster 0x0001, ep 0x02 11:50:22:217 GW firmware version: 0x26490700 11:50:22:217 GW firmware version is up to date: 0x26490700 11:50:25:909 Bind response success for 0x001788010637f83f cluster 0xFC00 11:51:12:238 Search sensors done 11:51:13:122 send permit join, duration: 59 11:51:15:161 Current channel 25 11:51:15:168 CTRL got nwk update id 0 11:51:15:175 Device TTL 2043 s flags: 0x7 11:52:13:096 Search sensors done 11:52:14:126 send permit join, duration: 59 11:52:15:152 Current channel 25 11:52:15:157 CTRL got nwk update id 0 11:52:15:164 Device TTL 1983 s flags: 0x7 11:52:17:911 Announced to internet http://dresden-light.appspot.com/discover 11:52:44:649 Websocket disconnected 10.0.2.15:53544 (state: 0) 11:52:48:193 saved node state in 3 ms 11:52:48:216 sync() in 20 ms 11:52:48:216 REST API plugin shutting down 11:52:48:229 sync() in 4 ms

djashjones commented 4 years ago

My Heiman UK plug arrived this morning and it looks like its fully supported. The only thing I don't like is that it take several seconds to report any change in the power.

smartypantsuk commented 4 years ago

7 seconds I could live with, but I've read some uncomfortable reports about some of the Heiman plugs burning out. So I'm gonna stick with Samsung.... or at least Samsung branded. We can't be far away now.

djashjones commented 4 years ago

Me too and they only way I got this plug is from china. At least there is something to compare it against now maybe.

ebaauw commented 4 years ago

I've read some uncomfortable reports about some of the Heiman plugs burning out

Source? I have two 3000W EU Heiman plugs connected to my washing machine and my dryer. They've been working for months (years?) without any issue. The only reports I've seen are about imitation UK plugs sold on Ebay as Heiman.

The only thing I don't like is that it take several seconds to report any change in the power.

You might want to double-check the attribute reporting settings. I've tweaked these manually to get the right amount of reporting (particularly filter out changes < 1V in the voltage, which the Heiman reports in 0.01V). Note that all plugs I've seen only update (as in: re-measure) Current Summation Delivered periodically.

smartypantsuk commented 4 years ago

Source? I have two 3000W EU Heiman plugs connected to my washing machine and my dryer. They've been working for months (years?) without any issue. The only reports I've seen are about imitation UK plugs sold on Ebay as Heiman.

It may be very well that I was thinking of. But iirc the guy had no response from Heiman about the plugs burning out. Given that there was nothing definitive to say the plugs weren't genuine, and given Heiman made no comment either way... It's concerning when you're installing these things in your home.

I wait to be corrected 😉

SwoopX commented 4 years ago

Damn. Sorry, but I have to ask: did you copy the compiled plugin to the corresponding folder via sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins?

smartypantsuk commented 4 years ago

Sadly SwoopX I was very careful with this procedure. I removed the old plugin, ran deconz to make sure it wasn't loading the plugin, then copied the new plugin over.

I'd consider rebuilding my Linux machine if I thought that might help. It's currently running Ubunutu v18 with nothing else installed other than the deconz stuff. Not really sure where to go from here. Bit difficult with only me testing as we don't know if there's any other factors at play.

djashjones commented 4 years ago

I can chip in unless my stick will mess up my current setup? I have various pcs

smartypantsuk commented 4 years ago

My main machine is Windows running deconz. But for testing I've been running Ubuntu on a laptop.I've been taking the conbee2 out of my main machine and using it in the test rig.It doesn't cause any issues I can see, in fact it appears seamless as the network just appears on my Ubuntu rig and it appears seamless.There is perhaps a chance That the way I'm swapping between systems us causing an issue, but I don't feel that is the case.

djashjones commented 4 years ago

Well my hass is unbuntu In docker and I can test in Windows. What do I need to do?

avotronics101 commented 4 years ago

if you mean deconz in Windows that won't work. I'm not even sure if docker is an option given SwoopX's first few comments at the top of this page. Need to ask him.

-------- Original message -------- From: djashjones notifications@github.com Date: 31/12/2019 16:23 (GMT+00:00) To: dresden-elektronik/deconz-rest-plugin deconz-rest-plugin@noreply.github.com Cc: avotronics101 avotronics@outlook.com, Comment comment@noreply.github.com Subject: Re: [dresden-elektronik/deconz-rest-plugin] [Request Device Support] Samsung SmartPlug 2019 Model ID: 7A-PL-Z-J3 (#2121)

Well my hass is unbuntu In docker and I can test in Windows. What do I need to do?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dresden-elektronik/deconz-rest-plugin/issues/2121?email_source=notifications&email_token=AN4STMNPGNXKFVE7CFHAWNDQ3NWZXA5CNFSM4JQ6RKVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH4M32A#issuecomment-569953768, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN4STMJVSYDRCY2UBVDDLIDQ3NWZXANCNFSM4JQ6RKVA.

SwoopX commented 4 years ago

How about taking an Ubuntu VM and follow the steps here. Make sure you also install the dev package sudo apt install deconz-dev. Then, download my deconz repo and compile it with the instructions given in the Readme. You may require to download some additional packages for compilation though.

smartypantsuk commented 4 years ago

How about taking an Ubuntu VM and follow the steps here. Make sure you also install the dev package sudo apt install deconz-dev. Then, download my deconz repo and compile it with the instructions given in the Readme. You may require to download some additional packages for compilation though.

I actually did this first time round. Thinking I might have had issue with the vm I moved to a dedicated install on a physical machine with no change. I'm not totally convinced of anything right now but another user trying your plugin is a must I think. I'm gonna try a clean install again using another system because I need to clean install Ubuntu anyway

djashjones commented 4 years ago

VM's are a bad idea as you need to open ports or allow ports, blah blah. I can ditch a windows pc and put ubuntu on, if needs be. Testing a NVR at mo (Blue iris) but it's no drama.

smartypantsuk commented 4 years ago

Sure the smartplug talks directly to the conbee so I do think in tgis instance ports would be relevant anyway, I stand to be corrected for a second time today 🤣..

I digress. Another tester is required. Your input is very welcomed.

djashjones commented 4 years ago

How do I get this plugin?

"Install deCONZ development package (optional, Linux only)"

SwoopX commented 4 years ago

VM's are a bad idea as you need to open ports or allow ports, blah blah.

I'd tend to disagree but that's not part of the topic. Go with what every you feel comfortable with 😋

For the basics: https://phoscon.de/en/conbee2/install

Then download my plugin version: https://github.com/SwoopX/deconz-rest-plugin.git and compile it as described.

djashjones commented 4 years ago

You could be right. I had a right nightmare on my mac in a windows VM trying to complile a .net embedded app.

Rather go native. Not that experienced in a) linux b) VM's

So instead of " git clone https://github.com/dresden-elektronik/deconz-rest-plugin.git" do "git clone https://github.com/SwoopX/deconz-rest-plugin"

Well if I get stuck, I'll let you know :)

God, help us. Can't even do smileys!!

smartypantsuk commented 4 years ago

So I've just clean installed Ubuntu 18.4 on another modern laptop. Went through all the same procedure and still got exactly the same result. No sensors getting added.

So I think I've ruled out a software problem, at least in terms of Ubuntu and also the hardware side and USB issues ruled out.

Certainly frustrating. There's clearly an issue finding the sensor or adding it.

smartypantsuk commented 4 years ago

It seems this is the manufacturer product page, LDS, Leadarson. Albeit the model slightly different. Interestingly they also make a z-wave version but I've never seen it. Note the spec says the button is for pair/power/reset. I wonder if we can get it in pair mode without factory resetting it as that may have an effect, though I don't hold my breath.

https://www.leedarson.com/iot.php/Product/detail/id/221#noscroll

djashjones commented 4 years ago

I can't find anywhere that you can buy Leedarson stuff from.

Just tried it on my system and no joy!!

Would trying to add it to zigbee2mqtt be any use?

smartypantsuk commented 4 years ago

Leedarson are OEM, that is, they make stuff for other companies. I'm just surprised their name is stamped on the side.

Re: zigbee2mqtt No idea. I've not used mqtt at all.

SwoopX commented 4 years ago

Don't think zigbee2mqtt would make a difference. Do you have a CC2531 or alike available? A traffic sniff could help.

djashjones commented 4 years ago

Ordered one on the 17 Dec 1919 and still waiting for it to be delivered. Thought it would be a useful tool have.

Happy new year to all 😁

smartypantsuk commented 4 years ago

1919?😁

djashjones commented 4 years ago

argh yes! A very slow boat from china 🤣

smartypantsuk commented 4 years ago

is that for sniffing?

djashjones commented 4 years ago

Not quite. Want to see if it's better than the conbee as I have a opple switch but that integration seems to have stalled.

smartypantsuk commented 4 years ago

oh right.

How do we traffic sniff? I assume wireshark will work using wifi adapter?

Happy New Year

djashjones commented 4 years ago

kinda but with a zigbee radio. Not really sure as this is totally new to me.

smartypantsuk commented 4 years ago

well I thought zigbee was 2.4Ghz band so a normal wifi adapter may work?

djashjones commented 4 years ago

The CC2531 is a USB enabled true system-on-chip (SoC) solution for IEEE 802.15.4, ZigBee and RF4CE applications. It enables USB dongles or USB upgradable network nodes to be built with low total bill-of-material costs. The CC2531 combines the performance of a leading RF transceiver with an industry-standard enhanced 8051 MCU, in-system programmable flash memory, 8-KB RAM, and many other powerful features. The CC2531 has various operating modes, making it suited for systems where ultralow power consumption is required. Short transition times between operating modes further ensure low energy consumption. Source code for USB HID and CDC libraries and examples are downloadable from the CC2531 product page on www.ti.com.

Don't you just love copy and paste. 😆 Bluetooth is on 2.4 ghz too. I've got so much learning ahead of me 😢

smartypantsuk commented 4 years ago

Bluetooth is on 2.4 ghz too. I've got so much learning ahead of me.

It is indeed. Though I quick read on Google suggests you need some hardware and software to sniff zigbee traffic...

https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html

SwoopX commented 4 years ago

It is not too hard to set up for sniffing, but you need a CC debugger to flash the firmware for sniffing or using it with zigbee2mqtt.

I'm pretty sure the plug has good chances to fully work with zigbee2mqtt, as it uses a more modern style to deal with devices.

smartypantsuk commented 4 years ago

I'm pretty sure the plug has good chances to fully work with zigbee2mqtt, as it uses a more modern style to deal with devices.

Does that mean it's doubtful that it won't work without zigbee2mqtt