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

4 Gang Tuya ZigBee Wireless 12 Scene Switch #4810

Closed mbriney closed 3 years ago

mbriney commented 3 years ago

Device

Screenshots

Basic

Identify

Alarms

Device Temperature

Groups

Scenes

On/Off

Level Control

Color Control

Simple Metering

Diagnostics

Other clusters that are not mentioned above

mbriney commented 3 years ago

Someone reported it works well with Hubitat recognizing each button with the three actions (single, double, hold) https://www.amazon.com/gp/customer-reviews/R1COWVHU2VTJKA/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B08P4SRGFQ

Smanar commented 3 years ago

Hello, I assume the manufacture number is 0x1002 visible on node info panel ?

Are you able to compile the code to test it ? You need a linux machine with full OS (There is some thing that look strange on this device)

You have the procedure here https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only So for you, after having installed deconz :

sudo apt install deconz-dev
git clone --branch tuya_switch_1 https://github.com/Smanar/deconz-rest-plugin.git
cd deconz-rest-plugin
qmake && make -j2
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins

If you have a small raspberry,it can freeze during compilation, my pi 3 do, so remove "-j2"

Remember you need to edit your json file, path = /usr/share/deCONZ/devices/button_maps.json

mbriney commented 3 years ago

Yes it might take a few days to get started as I want to order a second conbee so that I don't have to pull my production one out of service.

Smanar commented 3 years ago

You can just switch the conbee from the production to the dev machine for 10mn , time for tests.

But yes I understand, I can wait, I can too make the PR in blind mode if it s realy not possible to test it, but results can be random like it.

easybeat commented 3 years ago

I have integrated one of them succesfully today:

image

And it works well on 2.11.01

Smanar commented 3 years ago

Yep, but yours is in the code, no his one ^^. But they work same, 99% de chance for the PR will work.

easybeat commented 3 years ago

Well, I'm using ioBroker with deconz Adapter and in there it works without any problems

github-actions[bot] commented 3 years ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

luka6000 commented 3 years ago

any news on this one? On 2.11.5 this switch doesn't work. Detected as single light (not switch/button!). And physically pushing button 1 turns on every light. Button 3 switches everything off. How can I check or disable this behavior?

Smanar commented 3 years ago

Hello, I m still waiting for some one to test the code. BTW do you have a linux machine with full OS ?

luka6000 commented 3 years ago
pi@raspberrypi:~/deconz-rest-plugin $ make
make -f Makefile.Release
make[1]: Entering directory '/home/pi/deconz-rest-plugin'
/usr/lib/qt5/bin/uic -no-stringliteral de_web_widget.ui -o ui_de_web_widget.h
g++ -c -pipe -Wno-attributes -Wno-psabi -Wall -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DDECONZ_DLLSPEC=Q_DECL_IMPORT -DSKIP_EMPTY_PARTS=QString::SkipEmptyParts -DUSE_WEBSOCKETS -DHAS_SQLITE3 -DHAS_OPENSSL -DGW_SW_VERSION=\"2.11.01\" -DGW_SW_DATE=1619356943 -DGW_API_VERSION=\"1.16.0\" -DGIT_COMMMIT=\"4c99730c1a62ffff9edb0299fe242b9b253ac557\" -DGW_AUTO_UPDATE_AVR_FW_VERSION=0x260b0500 -DGW_AUTO_UPDATE_R21_FW_VERSION=0x26420700 -DGW_MIN_AVR_FW_VERSION=0x26390500 -DGW_MIN_R21_FW_VERSION=0x26660700 -DGW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300 -DGW_DEFAULT_NAME=\"Phoscon-GW\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../.. -I../../common -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWebSockets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -Irelease -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o release/air_quality.o air_quality.cpp
g++ -c -pipe -Wno-attributes -Wno-psabi -Wall -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DDECONZ_DLLSPEC=Q_DECL_IMPORT -DSKIP_EMPTY_PARTS=QString::SkipEmptyParts -DUSE_WEBSOCKETS -DHAS_SQLITE3 -DHAS_OPENSSL -DGW_SW_VERSION=\"2.11.01\" -DGW_SW_DATE=1619356943 -DGW_API_VERSION=\"1.16.0\" -DGIT_COMMMIT=\"4c99730c1a62ffff9edb0299fe242b9b253ac557\" -DGW_AUTO_UPDATE_AVR_FW_VERSION=0x260b0500 -DGW_AUTO_UPDATE_R21_FW_VERSION=0x26420700 -DGW_MIN_AVR_FW_VERSION=0x26390500 -DGW_MIN_R21_FW_VERSION=0x26660700 -DGW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300 -DGW_DEFAULT_NAME=\"Phoscon-GW\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../.. -I../../common -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWebSockets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -Irelease -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o release/authorisation.o authorisation.cpp
authorisation.cpp: In member function ‘bool DeRestPluginPrivate::allowedToCreateApikey(const ApiRequest&, ApiResponse&, QVariantMap&)’:
authorisation.cpp:80:39: error: no matching function for call to ‘QHttpRequestHeader::hasKey(const char [14]) const’
     if (req.hdr.hasKey("Authorization"))
                                       ^
In file included from /usr/include/deconz.h:39,
                 from de_web_plugin_private.h:24,
                 from authorisation.cpp:13:
/usr/include/deconz/qhttprequest_compat.h:47:10: note: candidate: ‘bool QHttpRequestHeader::hasKey(const QLatin1String&) const’
     bool hasKey(const QLatin1String &key) const;
          ^~~~~~
/usr/include/deconz/qhttprequest_compat.h:47:10: note:   no known conversion for argument 1 from ‘const char [14]’ to ‘const QLatin1String&’
authorisation.cpp:82:55: error: no matching function for call to ‘QHttpRequestHeader::value(const char [14]) const’
         QStringList ls = req.hdr.value("Authorization").split(' ');
                                                       ^
In file included from /usr/include/deconz.h:39,
                 from de_web_plugin_private.h:24,
                 from authorisation.cpp:13:
/usr/include/deconz/qhttprequest_compat.h:54:19: note: candidate: ‘QLatin1String QHttpRequestHeader::value(const QLatin1String&) const’
     QLatin1String value(const QLatin1String &key) const;
                   ^~~~~
/usr/include/deconz/qhttprequest_compat.h:54:19: note:   no known conversion for argument 1 from ‘const char [14]’ to ‘const QLatin1String&’
authorisation.cpp: In member function ‘void DeRestPluginPrivate::authorise(ApiRequest&, ApiResponse&)’:
authorisation.cpp:166:48: error: no matching function for call to ‘QHttpRequestHeader::hasKey(const char [11]) const’
                 if (req.hdr.hasKey("User-Agent"))
                                                ^
In file included from /usr/include/deconz.h:39,
                 from de_web_plugin_private.h:24,
                 from authorisation.cpp:13:
/usr/include/deconz/qhttprequest_compat.h:47:10: note: candidate: ‘bool QHttpRequestHeader::hasKey(const QLatin1String&) const’
     bool hasKey(const QLatin1String &key) const;
          ^~~~~~
/usr/include/deconz/qhttprequest_compat.h:47:10: note:   no known conversion for argument 1 from ‘const char [11]’ to ‘const QLatin1String&’
authorisation.cpp:168:62: error: no matching function for call to ‘QHttpRequestHeader::value(const char [11]) const’
                     i->useragent = req.hdr.value("User-Agent");
                                                              ^
In file included from /usr/include/deconz.h:39,
                 from de_web_plugin_private.h:24,
                 from authorisation.cpp:13:
/usr/include/deconz/qhttprequest_compat.h:54:19: note: candidate: ‘QLatin1String QHttpRequestHeader::value(const QLatin1String&) const’
     QLatin1String value(const QLatin1String &key) const;
                   ^~~~~
/usr/include/deconz/qhttprequest_compat.h:54:19: note:   no known conversion for argument 1 from ‘const char [11]’ to ‘const QLatin1String&’
make[1]: *** [Makefile.Release:579: release/authorisation.o] Error 1
make[1]: Leaving directory '/home/pi/deconz-rest-plugin'
make: *** [Makefile:40: release] Error 2
pi@raspberrypi:~/deconz-rest-plugin $

is this too new? deconz-dev is already the newest version (2.11.05-raspbian-buster-beta).

Smanar commented 3 years ago

Ha yes sorry, it s normal, the dev package have moved, have updated the code

cd deconz-rest-plugin
git pull
make clean
qmake && make -j2
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins
Smanar commented 3 years ago

Have submitted too the PR, as manup is validating PR ATM, I don't think we will have problem, there is this kind of addition every week.

The only thing where I m not sure is

And physically pushing button 1 turns on every light. Button 3 switches everything off. How can I check or disable this behavior?

luka6000 commented 3 years ago

ok, got it. So the situation is like this

image In Phoscon it's light image in the API it's light and sensor

{
    "config": {
        "UTC": "2021-05-24T07:24:05",
        "apiversion": "1.16.0",
        "backup": {
            "errorcode": 0,
            "status": "idle"
        },
        "bridgeid": "00212EFFFF0725AA",
        "datastoreversion": "93",
        "devicename": "ConBee II",
        "dhcp": true,
        "disablePermitJoinAutoOff": false,
        "factorynew": false,
        "fwversion": "0x26680700",
        "gateway": "192.168.0.1",
        "internetservices": {
            "internet": "connected",
            "remoteaccess": "disconnected",
            "swupdate": "connected",
            "time": "connected"
        },
        "ipaddress": "192.168.0.31",
        "lightlastseeninterval": 60,
        "linkbutton": false,
        "localtime": "2021-05-24T07:24:05",
        "mac": "b8:27:eb:30:a5:ab",
        "modelid": "deCONZ",
        "name": "Phoscon-dev",
        "netmask": "255.255.255.0",
        "networkopenduration": 180,
        "panid": 63009,
        "portalconnection": "disconnected",
        "portalservices": false,
        "portalstate": {
            "communication": "disconnected",
            "incoming": false,
            "outgoing": false,
            "signedon": false
        },
        "proxyaddress": "none",
        "proxyport": 0,
        "replacesbridgeid": null,
        "rfconnected": true,
        "starterkitid": "",
        "swupdate": {
            "checkforupdate": false,
            "devicetypes": {
                "bridge": false,
                "lights": [],
                "sensors": []
            },
            "notify": false,
            "text": "",
            "updatestate": 0,
            "url": ""
        },
        "swupdate2": {
            "autoinstall": {
                "on": false,
                "updatetime": ""
            },
            "bridge": {
                "lastinstall": "2021-05-23T09:57:02",
                "state": "noupdates"
            },
            "checkforupdate": false,
            "lastchange": "",
            "state": "noupdates"
        },
        "swversion": "2.11.5",
        "timeformat": "12h",
        "timezone": "Etc/GMT",
        "uuid": "414398d9-8dd1-43b7-85dc-73f9c4b67b8b",
        "websocketnotifyall": true,
        "websocketport": 443,
        "whitelist": {
            "543A74931B": {
                "create date": "2021-05-24T07:19:11",
                "last use date": "2021-05-24T07:24:05",
                "name": "Postman"
            },
            "75765391FA": {
                "create date": "2021-05-24T06:47:58",
                "last use date": "2021-05-24T07:24:05",
                "name": "Phoscon#B1536x754"
            },
            "8470831821": {
                "create date": "2021-05-23T15:29:03",
                "last use date": "2021-05-23T15:29:39",
                "name": "Phoscon#B1422x648"
            },
            "B9543A7493": {
                "create date": "2021-05-23T15:44:45",
                "last use date": "2021-05-24T06:58:25",
                "name": "Phoscon#B1422x648"
            }
        },
        "zigbeechannel": 11
    },
    "groups": {
        "1": {
            "action": {
                "alert": "none",
                "bri": 127,
                "colormode": "hs",
                "ct": 0,
                "effect": "none",
                "hue": 0,
                "on": false,
                "sat": 127,
                "scene": null,
                "xy": [
                    0,
                    0
                ]
            },
            "devicemembership": [],
            "etag": "736acbc648e2e13d3813310f7f62de90",
            "id": "1",
            "lights": [
                "1"
            ],
            "name": "dev",
            "scenes": [],
            "state": {
                "all_on": true,
                "any_on": true
            },
            "type": "LightGroup"
        }
    },
    "lights": {
        "1": {
            "colorcapabilities": 0,
            "ctmax": 65279,
            "ctmin": 0,
            "etag": "5162828d6705b1a6d43baf9fd679c75e",
            "hascolor": true,
            "lastannounced": null,
            "lastseen": "2021-05-24T07:23Z",
            "manufacturername": "IKEA of Sweden",
            "modelid": "TRADFRI bulb E14 WS opal 600lm",
            "name": "ikea e14",
            "state": {
                "alert": "none",
                "bri": 254,
                "colormode": "ct",
                "ct": 370,
                "on": true,
                "reachable": true
            },
            "swversion": "2.0.029",
            "type": "Color temperature light",
            "uniqueid": "68:0a:e2:ff:fe:8d:f7:7d-01"
        },
        "2": {
            "etag": "46f64ed70f04f0317741ce218bd9d391",
            "hascolor": false,
            "lastannounced": null,
            "lastseen": "2021-05-24T07:23Z",
            "manufacturername": "dresden elektronik",
            "modelid": "ConBee II",
            "name": "Configuration tool 2",
            "state": {
                "reachable": true
            },
            "swversion": "0x26680700",
            "type": "Configuration tool",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "3": {
            "etag": "6e7891368291a6f0fe0bbd57f84de1d2",
            "hascolor": false,
            "lastannounced": null,
            "lastseen": "2021-05-24T07:21Z",
            "manufacturername": "_TZ3000_xabckq1v",
            "modelid": "TS004F",
            "name": "Dimmer switch 3",
            "state": {
                "alert": "none",
                "on": false,
                "reachable": true
            },
            "swversion": null,
            "type": "Dimmer switch",
            "uniqueid": "60:a4:23:ff:fe:f6:f8:93-01"
        }
    },
    "resourcelinks": {},
    "rules": {},
    "scenes": {},
    "schedules": {},
    "sensors": {
        "1": {
            "config": {
                "configured": true,
                "on": true,
                "sunriseoffset": 30,
                "sunsetoffset": -30
            },
            "etag": "27ea19bef2dea5dd1c5690e2936f168e",
            "manufacturername": "Philips",
            "modelid": "PHDL00",
            "name": "Daylight",
            "state": {
                "dark": false,
                "daylight": true,
                "lastupdated": "2021-05-24T07:18:34.430",
                "status": 160,
                "sunrise": "2021-05-24T02:30:09",
                "sunset": "2021-05-24T18:38:26"
            },
            "swversion": "1.0",
            "type": "Daylight",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "2": {
            "config": {
                "battery": null,
                "on": true,
                "reachable": true
            },
            "ep": 1,
            "etag": "6e7891368291a6f0fe0bbd57f84de1d2",
            "lastseen": "2021-05-24T07:21Z",
            "manufacturername": "_TZ3000_xabckq1v",
            "mode": 1,
            "modelid": "TS004F",
            "name": "TS004F 2",
            "state": {
                "buttonevent": null,
                "lastupdated": "none"
            },
            "type": "ZHASwitch",
            "uniqueid": "60:a4:23:ff:fe:f6:f8:93-01-1000"
        }
    }
}

Logs (INFO, INFO_L2, MEASURE) from button 1 push and then button 3 push. Ikea bulb is turning on and off. No events or automation is set.

07:59:48:640 MS CORE_APS_IND (processPacked:985) took 0 ms
07:59:51:456 MS CORE_APS_IND (processPacked:985) took 0 ms
07:59:53:611 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
07:59:53:857 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node: 0x0000
07:59:53:862 MS CORE_APS_IND (processPacked:985) took 5 ms
07:59:54:233 Daylight now: goldenHour1, status: 160, daylight: 1, dark: 0
07:59:54:234 enqueue event config/localtime for /config/
07:59:54:236 poll node 60:a4:23:ff:fe:f6:f8:93-01
07:59:54:237 Idle timer triggered
07:59:54:238 don't create binding for attribute reporting of sensor TS004F 2
07:59:54:239 Force binding of attribute reporting for node TS004F 2
07:59:54:732 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
07:59:54:740 Poll light node ikea e14
07:59:54:782 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
07:59:55:052 APS-DATA.indication from child 0x82C3
07:59:55:059 enqueue event state/on for /lights/1
07:59:55:061 enqueue event state/on for /lights/3
07:59:55:065 [INFO] - No button map for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), command: ON (0x01), payload: None, zclSeq: 92
07:59:55:067 MS CORE_APS_IND (processPacked:985) took 14 ms
07:59:55:097 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"1","r":"lights","state":{"alert":null,"bri":254,"colormode":"ct","ct":370,"on":true,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:8d:f7:7d-01"} (ret = 19689608)
07:59:55:101 enqueue event event/checkgroupanyon for /groups/65520
07:59:55:104 enqueue event event/checkgroupanyon for /groups/1
07:59:55:125 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0008 dropped, values are fresh enough
07:59:55:130 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"3","r":"lights","state":{"on":true,"reachable":true},"t":"event","uniqueid":"60:a4:23:ff:fe:f6:f8:93-01"} (ret = 19689608)
07:59:55:132 enqueue event event/checkgroupanyon for /groups/65520
07:59:55:161 enqueue event state/all_on for /groups/65520
07:59:55:168 enqueue event state/any_on for /groups/65520
07:59:55:176 don't create binding for attribute reporting of sensor TS004F 2
07:59:55:180 enqueue event attr/lastseen for /lights/3
07:59:55:195 enqueue event state/all_on for /groups/1
07:59:55:199 enqueue event state/any_on for /groups/1
07:59:55:215 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0006
07:59:55:217 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0006/0x0000 after 0 s
07:59:55:218 enqueue event event/checkgroupanyon for /groups/65520
07:59:55:219 enqueue event event/checkgroupanyon for /groups/1
07:59:55:220 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
07:59:55:222    payload: 00001001
07:59:55:223 MS CORE_APS_IND (processPacked:985) took 8 ms
07:59:55:256 enqueue event config/localtime for /config/
07:59:55:261 Idle timer triggered
07:59:55:265 don't create binding for attribute reporting of sensor TS004F 2
07:59:55:266 Force binding of attribute reporting for node TS004F 2
07:59:55:268 read attributes of 0x680AE2FFFE8DF77D cluster: 0x0300: [ 
07:59:55:270 0x0003 
07:59:55:274 0x0004 
07:59:55:275 0x0007 
07:59:55:275 0x0008 
07:59:55:276 0x4001 
07:59:55:278 ]
07:59:55:279 add task 10302 type 19 to 0x680AE2FFFE8DF77D cluster 0x0300 req.id 14
07:59:55:280 Poll APS request 14 to 0x680AE2FFFE8DF77D cluster: 0x0300
07:59:55:291 don't create binding for attribute reporting of sensor TS004F 2
07:59:55:362 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"65520","r":"groups","state":{"all_on":true,"any_on":true},"t":"event"} (ret = 2126787808)
07:59:55:381 don't create binding for attribute reporting of sensor TS004F 2
07:59:55:400 discard group state push for 65520: state/any_on (already pushed)
07:59:55:415 Websocket 192.168.0.36:61494 send message: {"attr":{"id":"3","lastseen":"2021-05-24T07:59Z","manufacturername":"_TZ3000_xabckq1v","modelid":"TS004F","name":"Dimmer switch 3","type":"Dimmer switch","uniqueid":"60:a4:23:ff:fe:f6:f8:93-01"},"e":"changed","id":"3","r":"lights","t":"event","uniqueid":"60:a4:23:ff:fe:f6:f8:93-01"} (ret = 283)
07:59:55:423 Poll APS confirm 14 status: 0x00
07:59:55:428 Erase task req-id: 14, type: 19 zcl seqno: 211 send time 0, profileId: 0x0104, clusterId: 0x0300
07:59:55:447 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"1","r":"groups","state":{"all_on":true,"any_on":true},"t":"event"} (ret = 2126787808)
07:59:55:467 discard group state push for 1: state/any_on (already pushed)
07:59:55:491 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0300
07:59:55:496 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0003 after 0 s
07:59:55:499 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0004 after 0 s
07:59:55:500 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0007 after 0 s
07:59:55:502 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0008 after 0 s
07:59:55:503 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x4001 after 0 s
07:59:55:505 MS CORE_APS_IND (processPacked:985) took 17 ms
07:59:55:841 don't create binding for attribute reporting of sensor TS004F 2
07:59:55:952 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node: 0x0EE6
07:59:55:954 MS CORE_APS_IND (processPacked:985) took 2 ms
07:59:56:074 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
07:59:56:076 Poll light node ikea e14
07:59:56:127 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
07:59:56:232 enqueue event config/localtime for /config/
07:59:56:237 Idle timer triggered
07:59:56:238 don't create binding for attribute reporting of sensor TS004F 2
07:59:56:240 Force binding of attribute reporting for node TS004F 2
07:59:56:285 APS-DATA.indication from child 0x82C3
07:59:56:289 enqueue event state/on for /lights/1
07:59:56:292 enqueue event state/on for /lights/3
07:59:56:295 [INFO] - No button map for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 93
07:59:56:297 MS CORE_APS_IND (processPacked:985) took 12 ms
07:59:56:342 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"1","r":"lights","state":{"alert":null,"bri":254,"colormode":"ct","ct":370,"on":false,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:8d:f7:7d-01"} (ret = 19689608)
07:59:56:350 enqueue event event/checkgroupanyon for /groups/65520
07:59:56:352 enqueue event event/checkgroupanyon for /groups/1
07:59:56:376 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"3","r":"lights","state":{"on":false,"reachable":true},"t":"event","uniqueid":"60:a4:23:ff:fe:f6:f8:93-01"} (ret = 19689608)
07:59:56:381 enqueue event event/checkgroupanyon for /groups/65520
07:59:56:397 don't create binding for attribute reporting of sensor TS004F 2
07:59:56:415 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0006
07:59:56:422 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0006/0x0000 after 0 s
07:59:56:425 enqueue event event/checkgroupanyon for /groups/65520
07:59:56:427 enqueue event event/checkgroupanyon for /groups/1
07:59:56:429 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
07:59:56:431    payload: 00001000
07:59:56:433 MS CORE_APS_IND (processPacked:985) took 19 ms
07:59:56:434 enqueue event state/all_on for /groups/65520
07:59:56:436 enqueue event state/any_on for /groups/65520
07:59:56:498 enqueue event state/all_on for /groups/1
07:59:56:505 enqueue event state/any_on for /groups/1
07:59:56:516 don't create binding for attribute reporting of sensor TS004F 2
07:59:56:544 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"65520","r":"groups","state":{"all_on":false,"any_on":false},"t":"event"} (ret = 2126787808)
07:59:56:556 discard group state push for 65520: state/any_on (already pushed)
07:59:56:576 Websocket 192.168.0.36:61494 send message: {"e":"changed","id":"1","r":"groups","state":{"all_on":false,"any_on":false},"t":"event"} (ret = 2126787808)
07:59:56:585 don't create binding for attribute reporting of sensor TS004F 2
07:59:56:598 discard group state push for 1: state/any_on (already pushed)
07:59:57:072 don't create binding for attribute reporting of sensor TS004F 2
07:59:57:231 enqueue event config/localtime for /config/
07:59:57:233 Wait 0s till query finished
07:59:57:304 poll node 60:a4:23:ff:fe:f6:f8:93-01
07:59:58:754 MS CORE_APS_IND (processPacked:985) took 0 ms
08:00:01:153 MS CORE_APS_IND (processPacked:985) took 0 ms

@Smanar, let me know if you would like to see some more.

Smanar commented 3 years ago

Ha yep, sorry,have forget to say something.

07:59:55:065 [INFO] - No button map for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), command: ON (0x01), payload: None, zclSeq: 92

This is because you need to edit the json file On raspian it s /usr/share/deCONZ/device/button_maps.json

The modification is here https://github.com/dresden-elektronik/deconz-rest-plugin/pull/4908/files first part. After that when pressing the button you will see values in "buttonevent"

The light entry is a bug, but it s "normal", ATM deconz have problem to reconize tuya device, it s for that we need 2 inclusions, but if I m right, deconz is now able to reconize it (already in database), so you can remove the "light" entry, and re-include the device if needed.

For ikea reaction, still searching. It seem from the special group "all light"

07:59:55:132 enqueue event event/checkgroupanyon for /groups/65520 07:59:55:161 enqueue event state/all_on for /groups/65520 07:59:55:168 enqueue event state/any_on for /groups/65520

But this group is hidden, perhaps just removing the "light entry will correct this issue

luka6000 commented 3 years ago

Aqara OPPLE has this mode image Looks similar.

For now I've used group removal and this seems to work and not switching lights image Can you add this step to provisioning/onboarding while including switch to the network?

Smanar commented 3 years ago

Add button are working now ?

Can you add this step to provisioning/onboarding while including switch to the network?

That's my problem, he is by defaut, when you include a device, you reset it, so you loose all previous group/setting/ect ... The opple have the "group command" enabled by defaut, and it need to be disabled using code, but I never see it for tuya device.

It s for that, I have some worry, Idk if your device need special code, or if the issue is from previous inclusions. For me it s from inclusions, because it use API group command (the hidden group) and not native zigbee one like the opple.

luka6000 commented 3 years ago

Add button are working now ?

After:

  1. Tyua switch Basic cluster "Reset to factory defaults"
  2. Gateway reset
  3. Setting up everything from scratch I have this image

and buttons control light without automation as previously. Button map is working

15:14:41:454 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 45
15:14:41:495 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
15:14:41:739 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 01330A00, zclSeq: 46
15:14:42:006 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 00330A00, zclSeq: 47
15:14:42:316 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), command: ON (0x01), payload: None, zclSeq: 48
15:14:42:494 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 

It s for that, I have some worry, Idk if your device need special code, or if the issue is from previous inclusions. For me it s from inclusions, because it use API group command (the hidden group) and not native zigbee one like the opple.

It looks like by default not only ONOFF works but also Level control

15:20:00:508 MS CORE_APS_IND (processPacked:985) took 2 ms
15:20:02:113 MS CORE_APS_IND (processPacked:985) took 3 ms
15:20:03:815 MS CORE_APS_IND (processPacked:985) took 3 ms
15:20:05:508 MS CORE_APS_IND (processPacked:985) took 2 ms
15:20:07:111 MS CORE_APS_IND (processPacked:985) took 3 ms
15:20:07:418 enqueue event config/localtime for /config/
15:20:07:622 poll node 60:a4:23:ff:fe:f6:f8:93-01
15:20:08:196 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:20:08:198 Poll light node Color temperature light 2
15:20:08:249 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:20:08:420 enqueue event config/localtime for /config/
15:20:08:561 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0008 dropped, values are fresh enough
15:20:08:659 read attributes of 0x680AE2FFFE8DF77D cluster: 0x0300: [ 
15:20:08:660 0x0003 
15:20:08:661 0x0004 
15:20:08:662 0x0007 
15:20:08:662 0x0008 
15:20:08:663 0x4001 
15:20:08:664 ]
15:20:08:664 add task 78981 type 19 to 0x680AE2FFFE8DF77D cluster 0x0300 req.id 251
15:20:08:665 Poll APS request 251 to 0x680AE2FFFE8DF77D cluster: 0x0300
15:20:08:857 Poll APS confirm 251 status: 0x00
15:20:08:858 Erase task req-id: 251, type: 19 zcl seqno: 206 send time 0, profileId: 0x0104, clusterId: 0x0300
15:20:08:916 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0300
15:20:08:919 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0003 after 0 s
15:20:08:920 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0004 after 0 s
15:20:08:921 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0007 after 0 s
15:20:08:922 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0008 after 0 s
15:20:08:923 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x4001 after 0 s
15:20:08:925 MS CORE_APS_IND (processPacked:985) took 10 ms
15:20:09:418 enqueue event config/localtime for /config/
15:20:09:519 poll node 60:a4:23:ff:fe:f6:f8:93-01
15:20:10:042 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:20:10:043 Poll light node Color temperature light 2
15:20:10:095 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:20:10:414 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0008 dropped, values are fresh enough
15:20:10:434 enqueue event config/localtime for /config/
15:20:10:526 read attributes of 0x680AE2FFFE8DF77D cluster: 0x0300: [ 
15:20:10:529 0x0003 
15:20:10:531 0x0004 
15:20:10:532 0x0007 
15:20:10:533 0x0008 
15:20:10:534 0x4001 
15:20:10:536 ]
15:20:10:537 add task 78990 type 19 to 0x680AE2FFFE8DF77D cluster 0x0300 req.id 5
15:20:10:538 Poll APS request 5 to 0x680AE2FFFE8DF77D cluster: 0x0300
15:20:10:685 Poll APS confirm 5 status: 0x00
15:20:10:688 Erase task req-id: 5, type: 19 zcl seqno: 207 send time 0, profileId: 0x0104, clusterId: 0x0300
15:20:10:753 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0300
15:20:10:755 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0003 after 0 s
15:20:10:756 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0004 after 0 s
15:20:10:757 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0007 after 0 s
15:20:10:758 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0008 after 0 s
15:20:10:759 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x4001 after 0 s
15:20:10:760 MS CORE_APS_IND (processPacked:985) took 10 ms
15:20:11:135 enqueue event event/validgroup for /sensors/2
15:20:11:136 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0033, zclSeq: 51
15:20:11:137 MS CORE_APS_IND (processPacked:985) took 5 ms
15:20:11:286 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0008
15:20:11:288 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0008/0x0000 after 0 s
15:20:11:289 enqueue event state/bri for /lights/2
15:20:11:290 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0008, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
15:20:11:291    payload: 00002006
15:20:11:292 MS CORE_APS_IND (processPacked:985) took 7 ms
15:20:11:366 Websocket 192.168.0.10:1025 send message: {"e":"changed","id":"2","r":"lights","state":{"bri":6,"colormode":"ct","ct":370,"on":true,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:8d:f7:7d-01"} (ret = 35824848)
15:20:11:425 poll node 60:a4:23:ff:fe:f6:f8:93-01
15:20:11:428 enqueue event config/localtime for /config/
15:20:11:951 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:20:11:952 Poll light node Color temperature light 2
15:20:12:004 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:20:12:318 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0008 dropped, values are fresh enough
15:20:12:418 enqueue event config/localtime for /config/
15:20:12:420 read attributes of 0x680AE2FFFE8DF77D cluster: 0x0300: [ 
15:20:12:421 0x0003 
15:20:12:422 0x0004 
15:20:12:423 0x0007 
15:20:12:423 0x0008 
15:20:12:424 0x4001 
15:20:12:425 ]
15:20:12:425 add task 78999 type 19 to 0x680AE2FFFE8DF77D cluster 0x0300 req.id 18
15:20:12:426 Poll APS request 18 to 0x680AE2FFFE8DF77D cluster: 0x0300
15:20:12:574 Poll APS confirm 18 status: 0x00
15:20:12:576 Erase task req-id: 18, type: 19 zcl seqno: 208 send time 0, profileId: 0x0104, clusterId: 0x0300
15:20:12:641 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0300
15:20:12:643 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0003 after 0 s
15:20:12:644 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0004 after 0 s
15:20:12:645 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0007 after 0 s
15:20:12:646 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0008 after 0 s
15:20:12:647 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x4001 after 0 s
15:20:12:648 MS CORE_APS_IND (processPacked:985) took 9 ms
15:20:13:259 poll node 60:a4:23:ff:fe:f6:f8:93-01
15:20:13:418 enqueue event config/localtime for /config/
15:20:13:837 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:20:13:838 Poll light node Color temperature light 2
15:20:13:886 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:20:14:206 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0008 dropped, values are fresh enough
15:20:14:257 enqueue event event/validgroup for /sensors/2
15:20:14:259 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 52
15:20:14:260 MS CORE_APS_IND (processPacked:985) took 6 ms
15:20:14:328 read attributes of 0x680AE2FFFE8DF77D cluster: 0x0300: [ 
15:20:14:331 0x0003 
15:20:14:333 0x0004 
15:20:14:335 0x0007 
15:20:14:336 0x0008 
15:20:14:338 0x4001 
15:20:14:339 ]
15:20:14:340 add task 79007 type 19 to 0x680AE2FFFE8DF77D cluster 0x0300 req.id 28
15:20:14:341 Poll APS request 28 to 0x680AE2FFFE8DF77D cluster: 0x0300
15:20:14:450 enqueue event config/localtime for /config/
15:20:14:502 Poll APS confirm 28 status: 0x00
15:20:14:503 Erase task req-id: 28, type: 19 zcl seqno: 209 send time 1, profileId: 0x0104, clusterId: 0x0300
15:20:14:586 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0300
15:20:14:587 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0003 after 0 s
15:20:14:589 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0004 after 0 s
15:20:14:590 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0007 after 0 s
15:20:14:590 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0008 after 0 s
15:20:14:591 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x4001 after 0 s
15:20:14:593 MS CORE_APS_IND (processPacked:985) took 8 ms
15:20:14:691 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node: 0x0000
15:20:14:693 MS CORE_APS_IND (processPacked:985) took 1 ms
15:20:15:204 poll node 60:a4:23:ff:fe:f6:f8:93-01
15:20:15:234 enqueue event state/on for /lights/2
15:20:15:235 enqueue event state/on for /lights/3
15:20:15:236 enqueue event event/validgroup for /sensors/2
15:20:15:237 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 53
15:20:15:238 MS CORE_APS_IND (processPacked:985) took 8 ms
15:20:15:325 Websocket 192.168.0.10:1025 send message: {"e":"changed","id":"2","r":"lights","state":{"bri":6,"colormode":"ct","ct":370,"on":false,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:8d:f7:7d-01"} (ret = 35824848)
15:20:15:329 enqueue event event/checkgroupanyon for /groups/65520
15:20:15:332 enqueue event event/checkgroupanyon for /groups/1
15:20:15:378 Websocket 192.168.0.10:1025 send message: {"e":"changed","id":"3","r":"lights","state":{"on":false,"reachable":true},"t":"event","uniqueid":"60:a4:23:ff:fe:f6:f8:93-01"} (ret = 35824848)
15:20:15:382 enqueue event event/checkgroupanyon for /groups/65520
15:20:15:386 enqueue event event/checkgroupanyon for /groups/1
15:20:15:394 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0006
15:20:15:401 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0006/0x0000 after 0 s
15:20:15:406 enqueue event event/checkgroupanyon for /groups/65520
15:20:15:410 enqueue event event/checkgroupanyon for /groups/1
15:20:15:416 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
15:20:15:423    payload: 00001000
15:20:15:428 MS CORE_APS_IND (processPacked:985) took 38 ms
15:20:15:548 enqueue event config/localtime for /config/
15:20:15:588 enqueue event state/all_on for /groups/65520
15:20:15:591 enqueue event state/any_on for /groups/65520
15:20:15:627 enqueue event state/all_on for /groups/1
15:20:15:631 enqueue event state/any_on for /groups/1
15:20:15:681 Websocket 192.168.0.10:1025 send message: {"e":"changed","id":"65520","r":"groups","state":{"all_on":false,"any_on":false},"t":"event"} (ret = 2125841632)
15:20:15:701 discard group state push for 65520: state/any_on (already pushed)
15:20:15:731 Websocket 192.168.0.10:1025 send message: {"e":"changed","id":"1","r":"groups","state":{"all_on":false,"any_on":false},"t":"event"} (ret = 2125841632)
15:20:15:792 discard group state push for 1: state/any_on (already pushed)
15:20:15:860 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:20:15:862 Poll light node Color temperature light 2
15:20:15:913 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:20:16:283 ZCL attribute report 0x680AE2FFFE8DF77D for cluster: 0x0008, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
15:20:16:285 MS CORE_APS_IND (processPacked:985) took 2 ms
15:20:16:418 Skip idle timer callback, too early: elapsed 870 msec
15:20:30:595 MS CORE_APS_IND (processPacked:985) took 1 ms
15:20:44:951 Current channel 11
15:20:44:960 CTRL got nwk update id 1
15:20:44:974 Device TTL 1784 s flags: 0x7
15:20:45:900 MS CORE_APS_IND (processPacked:985) took 0 ms
15:21:01:795 MS CORE_APS_IND (processPacked:985) took 0 ms
15:21:17:098 MS CORE_APS_IND (processPacked:985) took 0 ms

So I've deleted "Dimmer switch 3" light (with Phoscon) and it's no longer visible as light. Switch still available in deconz. But now it's even worse. Buttons do not switch light on nor off. But the state shown in Phoscon changes from off to on to off by pushing buttons! Here is log

15:27:45:542 MS CORE_APS_IND (processPacked:985) took 0 ms
15:28:00:904 MS CORE_APS_IND (processPacked:985) took 0 ms
15:28:11:415 enqueue event config/localtime for /config/
15:28:12:161 APS-DATA.indication from child 0xC479
15:28:12:165 enqueue event state/on for /lights/2
15:28:12:166 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), command: ON (0x01), payload: None, zclSeq: 82
15:28:12:167 MS CORE_APS_IND (processPacked:985) took 6 ms
15:28:12:215 Websocket 192.168.0.10:1027 send message: {"e":"changed","id":"2","r":"lights","state":{"bri":252,"colormode":"ct","ct":370,"on":true,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:8d:f7:7d-01"} (ret = 35824848)
15:28:12:220 enqueue event event/checkgroupanyon for /groups/65520
15:28:12:224 enqueue event event/checkgroupanyon for /groups/1
15:28:12:311 enqueue event state/all_on for /groups/65520
15:28:12:317 enqueue event state/any_on for /groups/65520
15:28:12:323 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:28:12:326 Poll light node Color temperature light 2
15:28:12:389 enqueue event state/all_on for /groups/1
15:28:12:394 enqueue event state/any_on for /groups/1
15:28:12:402 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:28:12:479 Websocket 192.168.0.10:1027 send message: {"e":"changed","id":"65520","r":"groups","state":{"all_on":true,"any_on":true},"t":"event"} (ret = 2125841632)
15:28:12:488 enqueue event config/localtime for /config/
15:28:12:554 discard group state push for 65520: state/any_on (already pushed)
15:28:12:595 Websocket 192.168.0.10:1027 send message: {"e":"changed","id":"1","r":"groups","state":{"all_on":true,"any_on":true},"t":"event"} (ret = 2125841632)
15:28:12:634 discard group state push for 1: state/any_on (already pushed)
15:28:12:782 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0008 dropped, values are fresh enough
15:28:12:890 read attributes of 0x680AE2FFFE8DF77D cluster: 0x0300: [ 
15:28:12:891 0x0003 
15:28:12:892 0x0004 
15:28:12:892 0x0007 
15:28:12:893 0x0008 
15:28:12:893 0x4001 
15:28:12:894 ]
15:28:12:894 add task 80975 type 19 to 0x680AE2FFFE8DF77D cluster 0x0300 req.id 183
15:28:12:895 Poll APS request 183 to 0x680AE2FFFE8DF77D cluster: 0x0300
15:28:13:078 Poll APS confirm 183 status: 0x00
15:28:13:079 Erase task req-id: 183, type: 19 zcl seqno: 71 send time 0, profileId: 0x0104, clusterId: 0x0300
15:28:13:133 Node data 0x680ae2fffe8df77d profileId: 0x0104, clusterId: 0x0300
15:28:13:134 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0003 after 0 s
15:28:13:135 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0004 after 0 s
15:28:13:136 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0007 after 0 s
15:28:13:137 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x0008 after 0 s
15:28:13:138 0x680AE2FFFE8DF77D: update ZCL value 0x01/0x0300/0x4001 after 0 s
15:28:13:143 MS CORE_APS_IND (processPacked:985) took 11 ms
15:28:13:415 Skip idle timer callback, too early: elapsed 926 msec
15:28:13:757 APS-DATA.indication from child 0xC479
15:28:13:761 enqueue event state/on for /lights/2
15:28:13:762 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 83
15:28:13:763 MS CORE_APS_IND (processPacked:985) took 6 ms
15:28:13:813 Websocket 192.168.0.10:1027 send message: {"e":"changed","id":"2","r":"lights","state":{"bri":252,"colormode":"ct","ct":370,"on":false,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:8d:f7:7d-01"} (ret = 35824848)
15:28:13:819 enqueue event event/checkgroupanyon for /groups/65520
15:28:13:823 enqueue event event/checkgroupanyon for /groups/1
15:28:13:826 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:28:13:828 Poll light node Color temperature light 2
15:28:13:926 enqueue event state/all_on for /groups/65520
15:28:13:934 enqueue event state/any_on for /groups/65520
15:28:13:941 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:28:14:003 enqueue event state/all_on for /groups/1
15:28:14:013 enqueue event state/any_on for /groups/1
15:28:14:088 Websocket 192.168.0.10:1027 send message: {"e":"changed","id":"65520","r":"groups","state":{"all_on":false,"any_on":false},"t":"event"} (ret = 2125841632)
15:28:14:135 discard group state push for 65520: state/any_on (already pushed)
15:28:14:184 Websocket 192.168.0.10:1027 send message: {"e":"changed","id":"1","r":"groups","state":{"all_on":false,"any_on":false},"t":"event"} (ret = 2125841632)
15:28:14:227 discard group state push for 1: state/any_on (already pushed)
15:28:14:416 enqueue event config/localtime for /config/
15:28:15:105 poll node 68:0a:e2:ff:fe:8d:f7:7d-01
15:28:15:106 Poll light node Color temperature light 2
15:28:15:158 Poll APS request to 0x680AE2FFFE8DF77D cluster: 0x0006 dropped, values are fresh enough
15:28:15:415 enqueue event config/localtime for /config/
15:28:16:247 MS CORE_APS_IND (processPacked:985) took 0 ms
15:28:32:035 MS CORE_APS_IND (processPacked:985) took 0 ms

Bulb is not changing state - it's off all the time. But state shown by Phoscon changes.

Smanar commented 3 years ago

Just to be sure, your device is a battery one ?

You have edited the Json file ? If yes, it s strange you still have on log

15:28:13:762 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 83

Do not reset the gateway for future test, deconz need to use previous data (now we know the group command is not from API stuff as you still have it after the reset) So you can include the device, delete the "light" entry if you want but re-include it. If I m right on the second inclusion you will have only the switch entry.

Will check if I found information to see if this device need "magic" after inclusion.

Tips: If you still have broadcast request that trigger the bulb, you try to bind the remote to the coordinator direclty, cluster on/off and setlevel.

luka6000 commented 3 years ago

Just to be sure, your device is a battery one ?

9E90173A-0F0B-49C4-B555-16863103AFC3

You have edited the Json file ? If yes, it s strange you still have on log

15:28:13:762 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), command: OFF (0x00), payload: None, zclSeq: 83

pi@raspberrypi:~ $ grep -B3 -A15 xabckq1v /usr/share/deCONZ/devices/button_maps.json
        "Tuya3gangMap": {
            "vendor": "Tuya",
            "doc": "3-gang remote",
            "modelids": ["_TZ3000_bi6lpsew", "_TZ3400_keyjhapk", "_TYZB02_key8kk7r", "_TZ3400_keyjqthh", "_TZ3400_key8kk7r", "_TZ3000_vp6clf9d", "_TYZB02_keyjqthh", "_TZ3000_peszejy7", "_TZ3000_qzjcsmar", "_TZ3000_owgcnkrh", "_TZ3000_adkvzooy", "_TZ3000_arfwfgoa", "_TZ3000_a7ouggvs", "_TZ3000_rrjr1q0u", "_TZ3000_abci1hiu", "_TZ3000_dfgbtub0", "_TZ3000_xabckq1v"],
            "map": [
                [1, "0x01", "ONOFF", "0xfd", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "B1 short"],
                [1, "0x01", "ONOFF", "0xfd", "1", "S_BUTTON_1", "S_BUTTON_ACTION_DOUBLE_PRESS", "B1 double"],
                [1, "0x01", "ONOFF", "0xfd", "2", "S_BUTTON_1", "S_BUTTON_ACTION_LONG_RELEASED", "B1 long"],
                [1, "0x02", "ONOFF", "0xfd", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2 short"],
                [1, "0x02", "ONOFF", "0xfd", "1", "S_BUTTON_2", "S_BUTTON_ACTION_DOUBLE_PRESS", "B2 double"],
                [1, "0x02", "ONOFF", "0xfd", "2", "S_BUTTON_2", "S_BUTTON_ACTION_LONG_RELEASED", "B2 long"],
                [1, "0x03", "ONOFF", "0xfd", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3 short"],
                [1, "0x03", "ONOFF", "0xfd", "1", "S_BUTTON_3", "S_BUTTON_ACTION_DOUBLE_PRESS", "B3 double"],
                [1, "0x03", "ONOFF", "0xfd", "2", "S_BUTTON_3", "S_BUTTON_ACTION_LONG_RELEASED", "B3 long"],
                [1, "0x04", "ONOFF", "0xfd", "0", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "B4 short"],
                [1, "0x04", "ONOFF", "0xfd", "1", "S_BUTTON_4", "S_BUTTON_ACTION_DOUBLE_PRESS", "B4 double"],
                [1, "0x04", "ONOFF", "0xfd", "2", "S_BUTTON_4", "S_BUTTON_ACTION_LONG_RELEASED", "B4 long"]
            ]
        },
pi@raspberrypi:~ $

Do not reset the gateway for future test, deconz need to use previous data (now we know the group command is not from API stuff as you still have it after the reset) So you can include the device, delete the "light" entry if you want but re-include it. If I m right on the second inclusion you will have only the switch entry.

Will check if I found information to see if this device need "magic" after inclusion.

Tips: If you still have broadcast request that trigger the bulb, you try to bind the remote to the coordinator direclty, cluster on/off and setlevel.

ok. I can see this is already closed, so let me grab the newest code and check that one. I'll open new issue if anything will go wrong, ok?

Smanar commented 3 years ago

Ok, so it s realy a different tuya device, need to rewrite a part of the code, from the last official. Have re opened the issue (was my fault, was sure it was a standard tuya switch)

Give me 15 mn to send you a new code.

Smanar commented 3 years ago

Ok, so new code is online, sorry I have added perhaps 10 tuya switch so for me yours was same. The code is based on last official so to switch branch

cd deconz-rest-plugin
git pull
git checkout tuya_switch_new
git pull
qmake && make -j2
sudo cp ../libde_rest_plugin.so /usr/share/deCONZ/plugins

Have added a "magic" code to disable the broadcast command (the thing that make the ikea buld react) during inclusion, have started the json file according to log I have.

You have all changes here https://github.com/Smanar/deconz-rest-plugin/commit/ad48441426a20703c7a29949da506ac155c03af4

The new button map here https://github.com/Smanar/deconz-rest-plugin/blob/master/button_maps.json

It s just a json file, easy to understand all it work else

I need the button you have used and the log according to it to finish the json file.

luka6000 commented 3 years ago

Have added a "magic" code to disable the broadcast command (the thing that make the ikea buld react) during inclusion, have started the json file according to log I have.

ok, fresh start. Gateway reset, devices added with new plugin. It's the same - switch added as light and ikea bulb reacting to buttons. After a while and deconz restart, light Dimmer switch is gone leaving only sensor

        "2": {
            "config": {
                "battery": 100,
                "group": "65520",
                "on": true,
                "reachable": true
            },
            "ep": 1,
            "etag": "fa6137922ef92d823a07a35c4179204c",
            "lastseen": "2021-05-24T22:34Z",
            "manufacturername": "_TZ3000_xabckq1v",
            "mode": 1,
            "modelid": "TS004F",
            "name": "TS004F 2",
            "state": {
                "buttonevent": 1004,
                "lastupdated": "2021-05-24T22:34:18.994"
            },
            "type": "ZHASwitch",
            "uniqueid": "60:a4:23:ff:fe:f6:f8:93-01-1000"
        }

I need the button you have used and the log according to it to finish the json file.

Buttons pushed in the following order 7663FCF0-FCFB-4FC8-B4D0-2B60C831083C

short click (action on release)

22:38:35:000 [INFO] - Button 1004 - TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), action: B2, payload: None, zclSeq: 86
22:38:35:492 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 01330A00, zclSeq: 87
22:38:35:935 [INFO] - Button 1003 - TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3, payload: 00330A00, zclSeq: 88
22:38:36:405 [INFO] - Button 1002 - TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: ONOFF (0x0006), action: B1, payload: None, zclSeq: 89

double click no actions in the log

long press and release on 1 and 4 does nothing. Buttons 2 and 3 as follows

22:54:08:925 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0133, zclSeq: 124
22:54:11:784 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 125
22:54:16:268 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0033, zclSeq: 126
22:54:18:473 [INFO] - No button handler for: TS004F, broadcast to: 0xFFF0, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 127

So it's not a "12 scene" switch after all :-/

Smanar commented 3 years ago

So it's not a "12 scene" switch after all :-/

IDK, still missing the "double clic" and there is nothing about the cluster Scene 0x0005.

So first, have updated the JSON file > https://github.com/Smanar/deconz-rest-plugin/commit/d252096f8f08241a2413117fa61cd96eb9982aa0

It's the same - switch added as light and ikea bulb reacting to buttons.

Ok, do you know how to make bind ? (something like https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2077#issuecomment-554640916)

To prevent the device make braodcast command I make bind from it to the coordinator for cluster on/off + setlevel+ scene. But it seem not working (and your device continu to make request in broadcast instead of unicast) and Scene cluster don't work at all.

So if you can try to re-do them manualy with the GUI (you probably need to awake the device in same time) to find the usefull one.

Im searching information about this device on other project, but nothing, this device haven't a special C button like the opple ?

luka6000 commented 3 years ago

IDK, still missing the "double clic" and there is nothing about the cluster Scene 0x0005.

double click does nothing - no log entries. There is no Scene server cluster, look my screenshot here https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4810#issuecomment-846859026

So first, have updated the JSON file > Smanar@d252096

I think for LEVEL_CONTROL STOP it should be S_BUTTON_ACTION_LONG_RELEASED

Ok, do you know how to make bind ? (something like #2077 (comment))

To prevent the device make braodcast command I make bind from it to the coordinator for cluster on/off + setlevel+ scene. But it seem not working (and your device continu to make request in broadcast instead of unicast) and Scene cluster don't work at all.

So if you can try to re-do them manualy with the GUI (you probably need to awake the device in same time) to find the usefull one.

What about this?

        "2": {
            "config": {
                "battery": 100,
                "group": "65520",
                "on": true,
                "reachable": true
            },

Isn't this "group" entry making it broadcast? I've made it stop broadcasting be removing all groups, as mentioned here https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4810#issuecomment-846914401

Im searching information about this device on other project, but nothing, this device haven't a special C button like the opple ?

No additional buttons. It's pretty clean design FB08D652-D8DF-42E9-BB17-955FAE00CD9C

Smanar commented 3 years ago

There is no Scene server cluster, look my screenshot here

You have it, blue are input cluster, grey are output, you have it in grey.

I think for LEVEL_CONTROL STOP it should be S_BUTTON_ACTION_LONG_RELEASED

Yes, right but for the moment I m trying to retreive all events, I need to change too "B1" "B1L" and ect ....

I've made it stop broadcasting be removing all groups

And only this is working but work in all time ? The problem is if the device use the grey cluster (output) for scene, you need to bind this cluster to the coordinator, else no devices can see it. It s for that will be nice if you can try it too to be sure, else I can use the "clean group" method, but no device use this method yet.

Isn't this "group" entry making it broadcast?

Oups, I have see I have enabled this feature too. This is the "magic" group, all light in this group will be binded with the remote, but I don't think the ikea bulb is already inside this one.

luka6000 commented 3 years ago

Yes, right but for the moment I m trying to retreive all events, I need to change too "B1" "B1L" and ect ....

So it's like that short release for 1-2-3-4

19:34:29:358 [INFO] - Button 1004 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B2, payload: None, zclSeq: 108
19:34:31:161 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 01330A00, zclSeq: 109
19:34:32:039 [INFO] - Button 1003 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3, payload: 00330A00, zclSeq: 110
19:34:32:826 [INFO] - Button 1002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B1, payload: None, zclSeq: 111

hold for 2-3 hold release for 2-3

19:36:22:329 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0133, zclSeq: 123
19:36:25:068 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 124
19:36:29:368 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0033, zclSeq: 125
19:36:32:104 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 126

double click does nothing

And only this is working but work in all time ? The problem is if the device use the grey cluster (output) for scene, you need to bind this cluster to the coordinator, else no devices can see it. It s for that will be nice if you can try it too to be sure, else I can use the "clean group" method, but no device use this method yet.

Started all over again. reset gateway add bulb add switch This is state after image

{
    "config": {
        "UTC": "2021-05-26T19:26:54",
        "apiversion": "1.16.0",
        "backup": {
            "errorcode": 0,
            "status": "idle"
        },
        "bridgeid": "00212EFFFF0725AA",
        "datastoreversion": "93",
        "devicename": "ConBee II",
        "dhcp": true,
        "disablePermitJoinAutoOff": false,
        "factorynew": false,
        "fwversion": "0x26680700",
        "gateway": "192.168.0.1",
        "internetservices": {
            "internet": "connected",
            "remoteaccess": "disconnected",
            "swupdate": "connected",
            "time": "connected"
        },
        "ipaddress": "192.168.0.31",
        "lightlastseeninterval": 60,
        "linkbutton": false,
        "localtime": "2021-05-26T19:26:54",
        "mac": "b8:27:eb:30:a5:ab",
        "modelid": "deCONZ",
        "name": "Phoscon-dev",
        "netmask": "255.255.255.0",
        "networkopenduration": 180,
        "panid": 42882,
        "portalconnection": "disconnected",
        "portalservices": false,
        "portalstate": {
            "communication": "disconnected",
            "incoming": false,
            "outgoing": false,
            "signedon": false
        },
        "proxyaddress": "none",
        "proxyport": 0,
        "replacesbridgeid": null,
        "rfconnected": true,
        "starterkitid": "",
        "swupdate": {
            "checkforupdate": false,
            "devicetypes": {
                "bridge": false,
                "lights": [],
                "sensors": []
            },
            "notify": false,
            "text": "",
            "updatestate": 0,
            "url": ""
        },
        "swupdate2": {
            "autoinstall": {
                "on": false,
                "updatetime": ""
            },
            "bridge": {
                "lastinstall": "2021-05-24T22:06:36",
                "state": "noupdates"
            },
            "checkforupdate": false,
            "lastchange": "",
            "state": "noupdates"
        },
        "swversion": "2.11.5",
        "timeformat": "12h",
        "timezone": "Etc/GMT",
        "uuid": "c47633d7-fed6-4968-b262-04ea0564196b",
        "websocketnotifyall": true,
        "websocketport": 443,
        "whitelist": {
            "8FCFE46184": {
                "create date": "2021-05-26T19:18:42",
                "last use date": "2021-05-26T19:26:54",
                "name": "Postman"
            },
            "8FE2467DF1": {
                "create date": "2021-05-26T19:14:56",
                "last use date": "2021-05-26T19:26:49",
                "name": "Phoscon#B1920x1089"
            }
        },
        "zigbeechannel": 11
    },
    "groups": {},
    "lights": {
        "1": {
            "etag": "32a3ad3d1dd4d4424b73664013c5d8d6",
            "hascolor": false,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:26Z",
            "manufacturername": "dresden elektronik",
            "modelid": "ConBee II",
            "name": "Configuration tool 1",
            "state": {
                "reachable": true
            },
            "swversion": null,
            "type": "Configuration tool",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "2": {
            "colorcapabilities": 0,
            "ctmax": 65279,
            "ctmin": 0,
            "etag": "80892936a636e6bc9f9885bcbba4198e",
            "hascolor": true,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:25Z",
            "manufacturername": "IKEA of Sweden",
            "modelid": "TRADFRI bulb E14 WS opal 600lm",
            "name": "Color temperature light 2",
            "state": {
                "alert": "none",
                "bri": 254,
                "colormode": "ct",
                "ct": 370,
                "on": false,
                "reachable": true
            },
            "swversion": "2.0.029",
            "type": "Color temperature light",
            "uniqueid": "68:0a:e2:ff:fe:8d:f7:7d-01"
        },
        "3": {
            "etag": "83bd341e0cea8eb96f7bf67075121044",
            "hascolor": false,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:26Z",
            "manufacturername": "_TZ3000_xabckq1v",
            "modelid": "TS004F",
            "name": "Dimmer switch 3",
            "state": {
                "alert": "none",
                "on": false,
                "reachable": true
            },
            "swversion": null,
            "type": "Dimmer switch",
            "uniqueid": "60:a4:23:ff:fe:f6:f8:93-01"
        }
    },
    "resourcelinks": {},
    "rules": {},
    "scenes": {},
    "schedules": {},
    "sensors": {
        "1": {
            "config": {
                "configured": true,
                "on": true,
                "sunriseoffset": 30,
                "sunsetoffset": -30
            },
            "etag": "93307639ad5f8e71cbc91558251ed008",
            "manufacturername": "Philips",
            "modelid": "PHDL00",
            "name": "Daylight",
            "state": {
                "dark": true,
                "daylight": false,
                "lastupdated": "2021-05-26T19:26:48.851",
                "status": 210,
                "sunrise": "2021-05-26T02:27:52",
                "sunset": "2021-05-26T18:41:08"
            },
            "swversion": "1.0",
            "type": "Daylight",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "2": {
            "config": {
                "battery": 100,
                "group": "65520",
                "on": true,
                "reachable": true
            },
            "ep": 1,
            "etag": "5ce4b822aa116d59c60d22d39f72e244",
            "lastseen": "2021-05-26T19:26Z",
            "manufacturername": "_TZ3000_xabckq1v",
            "mode": 1,
            "modelid": "TS004F",
            "name": "TS004F 2",
            "state": {
                "buttonevent": 1004,
                "lastupdated": "2021-05-26T19:22:14.388"
            },
            "type": "ZHASwitch",
            "uniqueid": "60:a4:23:ff:fe:f6:f8:93-01-1000"
        }
    }
}

Switch is turning off bulb.

delete 'Dimmer switch 3' light

{
    "config": {
        "UTC": "2021-05-26T19:28:53",
        "apiversion": "1.16.0",
        "backup": {
            "errorcode": 0,
            "status": "idle"
        },
        "bridgeid": "00212EFFFF0725AA",
        "datastoreversion": "93",
        "devicename": "ConBee II",
        "dhcp": true,
        "disablePermitJoinAutoOff": false,
        "factorynew": false,
        "fwversion": "0x26680700",
        "gateway": "192.168.0.1",
        "internetservices": {
            "internet": "connected",
            "remoteaccess": "disconnected",
            "swupdate": "connected",
            "time": "connected"
        },
        "ipaddress": "192.168.0.31",
        "lightlastseeninterval": 60,
        "linkbutton": false,
        "localtime": "2021-05-26T19:28:53",
        "mac": "b8:27:eb:30:a5:ab",
        "modelid": "deCONZ",
        "name": "Phoscon-dev",
        "netmask": "255.255.255.0",
        "networkopenduration": 180,
        "panid": 42882,
        "portalconnection": "disconnected",
        "portalservices": false,
        "portalstate": {
            "communication": "disconnected",
            "incoming": false,
            "outgoing": false,
            "signedon": false
        },
        "proxyaddress": "none",
        "proxyport": 0,
        "replacesbridgeid": null,
        "rfconnected": true,
        "starterkitid": "",
        "swupdate": {
            "checkforupdate": false,
            "devicetypes": {
                "bridge": false,
                "lights": [],
                "sensors": []
            },
            "notify": false,
            "text": "",
            "updatestate": 0,
            "url": ""
        },
        "swupdate2": {
            "autoinstall": {
                "on": false,
                "updatetime": ""
            },
            "bridge": {
                "lastinstall": "2021-05-24T22:06:36",
                "state": "noupdates"
            },
            "checkforupdate": false,
            "lastchange": "",
            "state": "noupdates"
        },
        "swversion": "2.11.5",
        "timeformat": "12h",
        "timezone": "Etc/GMT",
        "uuid": "c47633d7-fed6-4968-b262-04ea0564196b",
        "websocketnotifyall": true,
        "websocketport": 443,
        "whitelist": {
            "8FCFE46184": {
                "create date": "2021-05-26T19:18:42",
                "last use date": "2021-05-26T19:28:53",
                "name": "Postman"
            },
            "8FE2467DF1": {
                "create date": "2021-05-26T19:14:56",
                "last use date": "2021-05-26T19:28:50",
                "name": "Phoscon#B1920x1089"
            }
        },
        "zigbeechannel": 11
    },
    "groups": {},
    "lights": {
        "1": {
            "etag": "3a42cd38b9e8e97a849b0f5d5b537fd6",
            "hascolor": false,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:28Z",
            "manufacturername": "dresden elektronik",
            "modelid": "ConBee II",
            "name": "Configuration tool 1",
            "state": {
                "reachable": true
            },
            "swversion": null,
            "type": "Configuration tool",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "2": {
            "colorcapabilities": 0,
            "ctmax": 65279,
            "ctmin": 0,
            "etag": "6dba141171cc16f8b4fe7096d8321a6a",
            "hascolor": true,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:28Z",
            "manufacturername": "IKEA of Sweden",
            "modelid": "TRADFRI bulb E14 WS opal 600lm",
            "name": "Color temperature light 2",
            "state": {
                "alert": "none",
                "bri": 254,
                "colormode": "ct",
                "ct": 370,
                "on": false,
                "reachable": true
            },
            "swversion": "2.0.029",
            "type": "Color temperature light",
            "uniqueid": "68:0a:e2:ff:fe:8d:f7:7d-01"
        }
    },
    "resourcelinks": {},
    "rules": {},
    "scenes": {},
    "schedules": {},
    "sensors": {
        "1": {
            "config": {
                "configured": true,
                "on": true,
                "sunriseoffset": 30,
                "sunsetoffset": -30
            },
            "etag": "93307639ad5f8e71cbc91558251ed008",
            "manufacturername": "Philips",
            "modelid": "PHDL00",
            "name": "Daylight",
            "state": {
                "dark": true,
                "daylight": false,
                "lastupdated": "2021-05-26T19:26:48.851",
                "status": 210,
                "sunrise": "2021-05-26T02:27:52",
                "sunset": "2021-05-26T18:41:08"
            },
            "swversion": "1.0",
            "type": "Daylight",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        }
    }
}

add switch again image

{
    "config": {
        "UTC": "2021-05-26T19:31:38",
        "apiversion": "1.16.0",
        "backup": {
            "errorcode": 0,
            "status": "idle"
        },
        "bridgeid": "00212EFFFF0725AA",
        "datastoreversion": "93",
        "devicename": "ConBee II",
        "dhcp": true,
        "disablePermitJoinAutoOff": false,
        "factorynew": false,
        "fwversion": "0x26680700",
        "gateway": "192.168.0.1",
        "internetservices": {
            "internet": "connected",
            "remoteaccess": "disconnected",
            "swupdate": "connected",
            "time": "connected"
        },
        "ipaddress": "192.168.0.31",
        "lightlastseeninterval": 60,
        "linkbutton": false,
        "localtime": "2021-05-26T19:31:38",
        "mac": "b8:27:eb:30:a5:ab",
        "modelid": "deCONZ",
        "name": "Phoscon-dev",
        "netmask": "255.255.255.0",
        "networkopenduration": 180,
        "panid": 42882,
        "portalconnection": "disconnected",
        "portalservices": false,
        "portalstate": {
            "communication": "disconnected",
            "incoming": false,
            "outgoing": false,
            "signedon": false
        },
        "proxyaddress": "none",
        "proxyport": 0,
        "replacesbridgeid": null,
        "rfconnected": true,
        "starterkitid": "",
        "swupdate": {
            "checkforupdate": false,
            "devicetypes": {
                "bridge": false,
                "lights": [],
                "sensors": []
            },
            "notify": false,
            "text": "",
            "updatestate": 0,
            "url": ""
        },
        "swupdate2": {
            "autoinstall": {
                "on": false,
                "updatetime": ""
            },
            "bridge": {
                "lastinstall": "2021-05-24T22:06:36",
                "state": "noupdates"
            },
            "checkforupdate": false,
            "lastchange": "",
            "state": "noupdates"
        },
        "swversion": "2.11.5",
        "timeformat": "12h",
        "timezone": "Etc/GMT",
        "uuid": "c47633d7-fed6-4968-b262-04ea0564196b",
        "websocketnotifyall": true,
        "websocketport": 443,
        "whitelist": {
            "8FCFE46184": {
                "create date": "2021-05-26T19:18:42",
                "last use date": "2021-05-26T19:31:38",
                "name": "Postman"
            },
            "8FE2467DF1": {
                "create date": "2021-05-26T19:14:56",
                "last use date": "2021-05-26T19:31:36",
                "name": "Phoscon#B1920x1089"
            }
        },
        "zigbeechannel": 11
    },
    "groups": {},
    "lights": {
        "1": {
            "etag": "0ceba36e713cce59206211b9015db5e8",
            "hascolor": false,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:31Z",
            "manufacturername": "dresden elektronik",
            "modelid": "ConBee II",
            "name": "Configuration tool 1",
            "state": {
                "reachable": true
            },
            "swversion": null,
            "type": "Configuration tool",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "2": {
            "colorcapabilities": 0,
            "ctmax": 65279,
            "ctmin": 0,
            "etag": "da4ad4f0dc97589c09294100061d6c0c",
            "hascolor": true,
            "lastannounced": null,
            "lastseen": "2021-05-26T19:31Z",
            "manufacturername": "IKEA of Sweden",
            "modelid": "TRADFRI bulb E14 WS opal 600lm",
            "name": "Color temperature light 2",
            "state": {
                "alert": "none",
                "bri": 254,
                "colormode": "ct",
                "ct": 370,
                "on": true,
                "reachable": true
            },
            "swversion": "2.0.029",
            "type": "Color temperature light",
            "uniqueid": "68:0a:e2:ff:fe:8d:f7:7d-01"
        }
    },
    "resourcelinks": {},
    "rules": {},
    "scenes": {},
    "schedules": {},
    "sensors": {
        "1": {
            "config": {
                "configured": true,
                "on": true,
                "sunriseoffset": 30,
                "sunsetoffset": -30
            },
            "etag": "93307639ad5f8e71cbc91558251ed008",
            "manufacturername": "Philips",
            "modelid": "PHDL00",
            "name": "Daylight",
            "state": {
                "dark": true,
                "daylight": false,
                "lastupdated": "2021-05-26T19:26:48.851",
                "status": 210,
                "sunrise": "2021-05-26T02:27:52",
                "sunset": "2021-05-26T18:41:08"
            },
            "swversion": "1.0",
            "type": "Daylight",
            "uniqueid": "00:21:2e:ff:ff:07:25:aa-01"
        },
        "3": {
            "config": {
                "battery": null,
                "on": true,
                "reachable": true
            },
            "ep": 1,
            "etag": "d7a1ef0150bda510a6686a942084b272",
            "lastseen": "2021-05-26T19:31Z",
            "manufacturername": "_TZ3000_xabckq1v",
            "mode": 1,
            "modelid": "TS004F",
            "name": "TS004F 3",
            "state": {
                "buttonevent": 1002,
                "lastupdated": "2021-05-26T19:31:13.050"
            },
            "type": "ZHASwitch",
            "uniqueid": "60:a4:23:ff:fe:f6:f8:93-01-1000"
        }
    }
}

It's all good now, switch is not turning on the bulb.

Smanar commented 3 years ago

It's all good now, switch is not turning on the bulb.

So delete the device (light + switch), and re-include it (only switch appear), works ?

And you have not "group": "65520",

On the second try.

But I don't understand how you can have exactly the same log when pressing button ? I have changed 3 button / 4, and you have exaclty same logs than before my change ? https://github.com/Smanar/deconz-rest-plugin/commit/d252096f8f08241a2413117fa61cd96eb9982aa0

romanho commented 3 years ago

Hope you don't mind me jumping in here...

I have the same Tuya switch" _TZ3000_xabckq1v" and I've pulled + compiled the newest REST plugin as described above, but still the switch isn't working.

Effects here are:

I've checked that my button_map.json is listing the xabckq1v device and that deconz is actually reading this file. Also libde_rest_plugin.so contains at least the string, so is probably the modified version.

But still all seems as nothing changed compared to before me applying the patch...

Smanar commented 3 years ago

@romanho Hello, you have used the branch tuya_switch_new ? You have replaced the json file too, in /usr/share/deCONZ/devices ?

Because he have at least the ONOFF working

19:34:29:358 [INFO] - Button 1004 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B2, payload: None, zclSeq: 108
19:34:31:161 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 01330A00, zclSeq: 109
19:34:32:039 [INFO] - Button 1003 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3, payload: 00330A00, zclSeq: 110
19:34:32:826 [INFO] - Button 1002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B1, payload: None, zclSeq: 111
romanho commented 3 years ago

you have used the branch tuya_switch_new ?

I'm sorry, actually no. I've seen "tuya_switch_1" somewhere in this thread and found it already merged, so I had cloned the the official distribution, not your fork.

Now I've pulled that one in and checked out the "tuya_switch_new" branch, build + copied libde_rest_plugin.so and button_maps.json, and now I have a similar but not equal output:

23:14:35:180 [INFO] - Button 1002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B1, payload: None, zclSeq: 102 23:14:36:158 [INFO] - Button 2002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B2, payload: None, zclSeq: 103 23:14:36:952 [INFO] - Button 3002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3, payload: 00330A00, zclSeq: 104 23:14:37:635 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 01330A00, zclSeq: 105

Also button 4 is missing, but my button numbers are different: 2002 vs. 1002 and 3002 vs. 1003. Does that matter, or what does it tell?

Double press still triggers no reaction at all, and long press on the two right buttons gives:

23:24:21:531 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0033, zclSeq: 122 23:24:23:477 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 123 23:24:28:604 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: MOVE (0x01), payload: 0133, zclSeq: 124 23:24:32:521 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STOP (0x03), payload: None, zclSeq: 125

Could you tell me what the fields in the button map are for? Then I could try a bit for myself to maybe fix the mappings.

Smanar commented 3 years ago

Also button 4 is missing, but my button numbers are different: 2002 vs. 1002 and 3002 vs. 1003. Does that matter, or what does it tell?

Yep, don't worry, it s just because the json file have changed since.

This part is for short press

[1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "B1"],
[1, "0x01", "ONOFF", "OFF", "1", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2"],
[1, "0x01", "LEVEL_CONTROL", "STEP", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3"],
[1, "0x02", "LEVEL_CONTROL", "STEP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "B4"],

The not working is this one [1, "0x02", "LEVEL_CONTROL", "STEP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "B4"]

But seriously all seem fine

23:14:37:635 [INFO] - No button handler for: TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), command: STEP (0x02), payload: 01330A00, zclSeq: 105

Edit :

Have found the problem, the endpoint, try with replacing all 0x02 by 0x01

            "map": [
                [1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "B1"],
                [1, "0x01", "ONOFF", "OFF", "1", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2"],
                [1, "0x01", "LEVEL_CONTROL", "STEP", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3"],
                [1, "0x01", "LEVEL_CONTROL", "STEP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "B4"],
                [1, "0x01", "LEVEL_CONTROL", "MOVE", "0", "S_BUTTON_2", "S_BUTTON_ACTION_HOLD", "B2H"],
                [1, "0x01", "LEVEL_CONTROL", "STOP", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2R"],
                [1, "0x01", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_3", "S_BUTTON_ACTION_HOLD", "B3L"],
                [1, "0x01", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3R"]
            ]
romanho commented 3 years ago

Have found the problem, the endpoint, try with replacing all 0x02 by 0x01

I had added some DBG_Printf()s in checkSensorButtonEvent() today, and basically found out the same thing now. As I wanted to post it here now, I've seen your edit -- obviously I didn't recheck soon enough... :-O

Anyway, I can confirm that all 4 buttons deliver an action for short press now:

00:01:09:582 [INFO] - Button 1002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B1, payload: None, zclSeq: 87 00:01:10:759 [INFO] - Button 2002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: B2, payload: None, zclSeq: 88 00:01:13:089 [INFO] - Button 3002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3, payload: 00330A00, zclSeq: 89 00:01:13:987 [INFO] - Button 4002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B4, payload: 01330A00, zclSeq: 90

Even the two right buttons give an action for long press and release of this:

00:01:42:170 [INFO] - Button 2001 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B2H, payload: 0033, zclSeq: 91 00:01:42:939 [INFO] - Button 2002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B2R, payload: None, zclSeq: 92 00:02:05:665 [INFO] - Button 3001 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3L, payload: 0133, zclSeq: 93 00:02:06:821 [INFO] - Button 3002 - TS004F, broadcast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: B3R, payload: None, zclSeq: 94

So quite some progress :-) But still nothing on double press or long press of the left buttons. Can anything be done about those? Does it make sense to play around with the output clusters, or something else?

Smanar commented 3 years ago

Perhaps its just not supported.

Does it make sense to play around with the output clusters, or something else?

Yes can try to bind other cluster than onoff and levelcontrol (rest the scene cluster), to check if you have more return in log, but on the code It already done.

    else if (sensor->modelId().startsWith(QLatin1String("RGBgenie ZB-5")) || // RGBgenie remote control
             sensor->manufacturer() == QLatin1String("_TZ3000_xabckq1v") || // 4 Gang Tuya ZigBee Wireless 12 Scene Switch
             sensor->modelId().startsWith(QLatin1String("ZBT-DIMController-D0800"))) // Mueller-Licht tint dimmer
    {
        clusters.push_back(ONOFF_CLUSTER_ID);
        clusters.push_back(LEVEL_CLUSTER_ID);
        clusters.push_back(SCENE_CLUSTER_ID);
        srcEndpoints.push_back(sensor->fingerPrint().endpoint);
    }

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2077#issuecomment-554640916

romanho commented 3 years ago

Perhaps its just not supported

At least it has been advertised as being able to set 3x4 scenes, i.e. 3 different things per button.

Yes can try to bind other cluster than onoff and levelcontrol (rest the scene cluster), to check if you have more return in log, but on the code It already done.

I can see this code, yep. A new button definition for SCENE didn't change anything.

Then I've experimented a bit in deCONZ GUI, selected the "scene" cluster and tried to add a scene response. But I cannot select anything in the "Status" dropdown, and any combination of values just triggers

Command info, failed to get parameter for 0x0000, invalid user input

I could at least define a group in the device; if defining again it says something like "already defined", but it seems not to store the group name. Ok, not important...

Do you know how the "Status" could be filled with something meaningful? Or is that a wrong track anyway?

Smanar commented 3 years ago

Ha, we are not speaking about same thing, was just saying to bind the scene cluster, but you are right, the device probably don't use scene feature because they are not set.

Never used them on my side, but I have that as information

In most cases scenes are associated with a particular group ID. Scenes MAY also exist without a group, in which case the value 0x0000 replaces the group ID. Note that extra care is required in these cases to avoid a scene ID collision, and that commands related to scenes without a group MAY only be unicast, i.e., they MAY not be multicast or broadcast.

The "status" dropbox is the answer when you use the request "add scene", the first 3 lines are to set the request, the 3 last are for the answer.

But I have realy no clues what we need to to with that ....

romanho commented 3 years ago

I hope I understand what you mean... And I think I found out the following:

My device only has a grey Scene cluster, and you said somewhere above that blue is for sending/output, grey is for receiving/input from the device. No blue Scene cluster, no output :-/

In the grey one, the frame border title really reads "Add scene response", so it makes sense that this is the answer ... but where's the command? I search all clusters up and down -- nothing. I also defined a group, hoping that this might unhide something, but also no success.

Maybe some special magic by the original Tuya bridge or app is needed before those scenes can be defined ... I give up on this.

Just a last remark: In button_maps.json, the MOVE and STOP events should be mapped to correctly corresponding names, I'd say. Currently it's B2H/B2R/B3L/B3R but the buttons are 3 and 4, not 2 and 3.

-        [1, "0x02", "LEVEL_CONTROL", "MOVE", "0", "S_BUTTON_2", "S_BUTTON_ACTION_HOLD", "B2H"],
-        [1, "0x02", "LEVEL_CONTROL", "STOP", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2R"],
-        [1, "0x02", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_3", "S_BUTTON_ACTION_HOLD", "B3L"],
-        [1, "0x02", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "B3R"]
+        [1, "0x01", "LEVEL_CONTROL", "MOVE", "0", "S_BUTTON_3", "S_BUTTON_ACTION_HOLD", "B3H"],
+        [1, "0x01", "LEVEL_CONTROL", "STOP", "0", "S_BUTTON_3", "S_BUTTON_ACTION_LONG_RELEASED", "B3R"],
+        [1, "0x01", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_4", "S_BUTTON_ACTION_HOLD", "B4L"],
+        [1, "0x01", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_LONG_RELEASED", "B4R"]
Smanar commented 3 years ago

For remote, we are using output cluster (the grey one). But if you realy nothing on deconz logs, it mean we forget to configure something on zigbee side, can't do more with API.

For the modification, it s as you want, can make the PR yourself if you want ?

romanho commented 3 years ago

mean we forget to configure something on zigbee side, can't do more with API

You mean one would have to send some magic Zigbee packets to enable something? Could you give me a pointer where/how to do that? Maybe I'll get back to this sometimes when I'm bored ;-)

For the modification, it s as you want, can make the PR yourself if you want ?

Done, #5004

And many thanks for all your patience and support! :-)

Smanar commented 3 years ago

Np ^^.

You mean one would have to send some magic Zigbee packets to enable something? Could you give me a pointer where/how to do that?

That's the problem, no information yet on other project about this device, to be sure it s possible we need at least someone that have alrady do that with the original gateway, or better that have sniffed it, to have the "magic receipe"

github-actions[bot] commented 3 years ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 3 years ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

phhe commented 3 years ago

Running 2.12.03, I was able to stop updates to all lights by clearing light entries for group 65520.

❯ curl -X 'PUT' 'http://<HOST_IP>:40850/api/<API_KEY>/groups/65520' -H "Content-Type: application/json" -d '{ "lights": [] }'
[{"success":{"/groups/65520/lights":[]}}]%

I'm now getting deconz_events for single presses (neither hold nor double click seems to do anything) in HA:

{
    "event_type": "deconz_event",
    "data": {
        "id": "switch_moes_1",
        "unique_id": "XXX,
        "event": 1002,
        "device_id": "YYY"
    },
    "origin": "LOCAL",
    "time_fired": "2021-08-02T00:09:09.258572+00:00",
    "context": {
        "id": "ZZZ",
        "parent_id": null,
        "user_id": null
    }
}

For the record: I was not able to delete the group and 'Remove all groups' didn't work for me either.

Smanar commented 3 years ago

@igorrotxategi I can't add your device finally, you have a typo in the manufacture name (one more letter) and your capture are unusable, I can't read the manufacture name

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/5172

igorrotxategi commented 3 years ago

@igorrotxategi I can't add your device finally, you have a typo in the manufacture name (one more letter) and your capture are unusable, I can't read the manufacture name

5172

Hi @Smanar Im sorry for the cuality of the screenshots i have attached at the issue. I have entered to home assistant on my tv, to have a image with a better quality. I hope this will be better photo_2021-08-04_23-12-00

Thank you very much

Smanar commented 3 years ago

Ok, so there is realy nothing to do ^^ It s exaclty the same than on this issue, you just need a deconz version >= 2.12 to use it.

igorrotxategi commented 3 years ago

Ok, so there is realy nothing to do ^^ It s exaclty the same than on this issue, you just need a deconz version >= 2.12 to use it.

I am running v2.11.5 on hassio. I don´t know how to upgrade the version. Can you help me, please?

Smanar commented 3 years ago

Nope, sorry, I realy don't know the special OS made for HA or docker.

hgross commented 3 years ago

Pleasse reopen, double press and long press is still not working.

Mimiix commented 3 years ago

@hgross On version 2.12?