deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

Woox R7052 Smart SOS Button

Open EarlOfBurton opened this issue 4 years ago • 17 comments

Device

  • Product name: Woox R7052 Smart SOS Button
  • Manufacturer: _TZ_3000_ssp0maqm
  • Model identifier: TS0215
  • Device type : Please remove all unrelated device types.
    • Switch

Product page: https://wooxhome.com/new-c8/woox-r7052-smart-sos-button-p50

Screenshots

cluster info node_info power_info

EarlOfBurton avatar Feb 01 '21 13:02 EarlOfBurton

Missing screen of the device on deconz (and what clusters it houses).

Mimiix avatar Feb 01 '21 14:02 Mimiix

Is this the screenshot I forgot to do? 1

EarlOfBurton avatar Feb 01 '21 14:02 EarlOfBurton

Yes. But now also missing Time, IAS zone and IAS ACE.

Mimiix avatar Feb 01 '21 14:02 Mimiix

Okay, I'm sorry, I'm new to the process. Is this what you need?

Basic

basic

Time

time

Power Configuration

power_configuration

IAS Zone

ias_zone

IAS ACE (part 1 of 2)

ias_ace_1

IAS ACE (part 2 of 2)

ias_ace_2

OTAU

otau

EarlOfBurton avatar Feb 01 '21 14:02 EarlOfBurton

Yes. Well, not me, but the developers.

Mimiix avatar Feb 02 '21 07:02 Mimiix

Hello friends, are you still missing data from my side, since it has still the mark "incomplete issue"? If so, could you let me know what it is, please?

EarlOfBurton avatar Feb 02 '21 18:02 EarlOfBurton

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] avatar Feb 24 '21 10:02 github-actions[bot]

Bump to keep it active

EarlOfBurton avatar Feb 24 '21 12:02 EarlOfBurton

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] avatar Mar 18 '21 02:03 github-actions[bot]

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.

github-actions[bot] avatar Mar 27 '21 01:03 github-actions[bot]

Re opened on user request.

Mimiix avatar Jul 26 '22 09:07 Mimiix

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.

github-actions[bot] avatar Aug 03 '22 02:08 github-actions[bot]

Bump to keep it active

Nomeboj avatar Aug 03 '22 07:08 Nomeboj

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] avatar Aug 25 '22 02:08 github-actions[bot]

Bump to keep it active

Nomeboj avatar Aug 25 '22 05:08 Nomeboj

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] avatar Sep 17 '22 02:09 github-actions[bot]

Bump to keep it active

Nomeboj avatar Sep 19 '22 04:09 Nomeboj

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] avatar Oct 12 '22 02:10 github-actions[bot]

Bump to keep it active

Nomeboj avatar Oct 12 '22 05:10 Nomeboj

@Smanar Can this be done you think?

Mimiix avatar Oct 12 '22 13:10 Mimiix

Yep, can try this DDF

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_ssp0maqm",
  "modelid": "TS0215A",
  "vendor": "Woox",
  "product": "R7052 Smart SOS Button",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0500"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0401",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0500",
          "0x0501"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/enrolled"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/buttonevent",
          "awake": true
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/lowbattery"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0500"
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0501"
    }
  ]
}

With this DDF the device will be reconized but not working. Pls check deconz log with flag "info" and "info_l2" and pressing button, you will see error about missing button map, can you share them ?

But I think you will have thoses one

        "immaxKeyfobMap": {
            "vendor": "Immax",
            "doc": "Smart Keyfob 07046L",
            "modelids": ["Keyfob-ZB3.0"],
            "map": [
                [1, "0x01", "IAS_ACE", "ARM", "1", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm day/home zones only"],
                [1, "0x01", "IAS_ACE", "ARM", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Disarm"],
                [1, "0x01", "IAS_ACE", "EMERGENCY", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "Emergency"],
                [1, "0x01", "IAS_ACE", "ARM", "3", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm all zones"]
            ]
        },

Smanar avatar Oct 12 '22 14:10 Smanar

Hi.

I will try something tomorrow . It seems that i did not receive SOS from Woox but from Tuya even I ordered Woox so i am bumping wrong case for some time :-p

Regards.

Nomeboj avatar Oct 12 '22 15:10 Nomeboj

My DDF is based on the one on the first post, and this one is not a tuya.

Smanar avatar Oct 12 '22 16:10 Smanar

Hi friends, thanks for providing the start of the DDF. The Log says: 19:42:11:912 [INFO] - No button map for: TS0215A, unicast to: 0x0000, endpoint: 0x01, cluster: IAS_ACE (0x0501), command: EMERGENCY (0x02), payload: None, zclSeq: 110 19:42:11:942 Websocket 172.30.32.1:37604 send message: {"attr":{"id":"103","lastannounced":null,"lastseen":"2022-10-12T17:42Z","manufacturername":"_TZ3000_ssp0maqm","modelid":"TS0215A","name":"Switch 103","swversion":null,"type":"ZHASwitch","uniqueid":"bc:33:ac:ff:fe:xx:xx:xx-xx-xxxx"},"e":"changed","id":"103","r":"sensors","t":"event","uniqueid":"bc:33:ac:ff:fe:xx:xx:xx-xx-xxxx"} (ret = 328)

Is this what you need? Since I'm having 73 nodes it's pretty hard to get the right portion of the log to me...

There is a small typo in the DDF, you wrote "modelid": "TS0215" but it should be "modelid": "TS0215A"

Couldn't get it working without the "A" at the end.

EarlOfBurton avatar Oct 12 '22 17:10 EarlOfBurton

Ha thx, have correctyed the DDF

Is this what you need?

Yes exactly and this one is the same than

No button map for: TS0215A, unicast to: 0x0000, endpoint: 0x01, cluster: IAS_ACE (0x0501), command: EMERGENCY (0x02), payload: None,

[1, "0x01", "IAS_ACE", "EMERGENCY", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "Emergency"],

So we can suppose all are same. You can edit the file "button_maps.json" you can find it in the "devices" folder too

And add inside

        "TuyaKeyfobMap": {
            "vendor": "Woox",
            "modelids": ["TS0215A"],
            "map": [
                [1, "0x01", "IAS_ACE", "ARM", "1", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm day/home zones only"],
                [1, "0x01", "IAS_ACE", "ARM", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Disarm"],
                [1, "0x01", "IAS_ACE", "EMERGENCY", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "Emergency"],
                [1, "0x01", "IAS_ACE", "ARM", "3", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Arm all zones"]
            ]
        },

Smanar avatar Oct 13 '22 16:10 Smanar

Hi and thanks, I implemented the part to button_maps.json then I had to restart deCONZ the changes to take effect. Now I can see an action connected to the device in Home Assistant (before there was nothing):

woox_2 but when I use it in an Automation, nothing happens. I tried it with two more automations to be sure there's nothing wrong with that - same result. Nothing happens. I pressed it, pressed it long, pressed it twice, pressed it really long like 10 secsonds - the automation was never triggered.

I relogged with INFO and INFO_L2, maybe this can help you to identify the problem? 22:43:07:138 Websocket 172.30.32.1:37758 send message: {"attr":{"id":"105","lastannounced":null,"lastseen":"2022-10-13T20:43Z","manufacturername":"_TZ3000_ssp0maqm","modelid":"TS0215A","name":"Woox R7052 Smart SOS Button 1","swversion":null,"type":"ZHASwitch","uniqueid":"bc:33:ac:ff:xx:xx:xx:xx-xx-xxxx"},"e":"changed","id":"105","r":"sensors","t":"event","uniqueid":"bc:33:ac:ff:xx:xx:xx:xx-xx-xxxx"} (ret = 347)

The API Information from Phoscon states as follows (I edited the etag and uniqueid field for safety reasons): { "config": { "enrolled": 0, "on": true, "pending": [], "reachable": true }, "ep": 1, "etag": "ff5bfac77c156167f0a6f67xxxxxxxxx", "lastannounced": null, "lastseen": "2022-10-13T20:53Z", "manufacturername": "_TZ3000_ssp0maqm", "mode": 1, "modelid": "TS0215A", "name": "Woox R7052 Smart SOS Button 1", "state": { "buttonevent": null, "lastupdated": "none", "lowbattery": null, "tampered": false }, "type": "ZHASwitch", "uniqueid": "bc:33:ac:ff:xx:xx:xx:xx-xx-xxxx" }

Or do you need something else I can support you with? Kind regards.

EarlOfBurton avatar Oct 13 '22 21:10 EarlOfBurton

"buttonevent": null

I have something wrong. You still have same error message in deconz when using a button ?

No button map for: TS0215A, unicast to: 0x0000, endpoint: 0x01, cluster: IAS_ACE (0x0501), command: EMERGENCY (0x02), payload: None

Smanar avatar Oct 14 '22 14:10 Smanar

Hi @Smanar, I think there was no message like "No button map". Btw. the "Woox R7052 Smart SOS Button" has only one button, in case that is important for the button map.

Now there is something weird happening. I deleted the node via deCONZ, to have a new clean pairing. I reset the Woox device. Then I tried to re-pair it with Phoscon, as I did before. But Phoscon will no more recognise it, but in deCONZ I see it with the randomly generated name (0x48BD): woox

I restarted the deCONZ addon, no luck. I shutdown the Raspi, took it off power for 1 min, rebooted it. Still the same, Phoscon is not recognising the device again, although I can see in deCONZ that it has loaded the correct DDF file...

Can you help me?

Kind regards.

EarlOfBurton avatar Oct 14 '22 16:10 EarlOfBurton

@Smanar, I got it working again... it seems that the DDF-file that I created, woox_r7052_ts0215a.json got deleted as well as the new button_maps.json was overwritten during restart or reboot of deCONZ and the changes are gone. I had to reupload the files in the usr/share/deCONZ/devices/woox -folder. Strange. At the moment, with the by deCONZ cleaned button_maps.json I get the following when pressing the button: 19:16:03:547 [INFO] - No button map for: TS0215A, unicast to: 0x0000, endpoint: 0x01, cluster: IAS_ACE (0x0501), command: EMERGENCY (0x02), payload: None, zclSeq: 42

Does this help to get it working?

EarlOfBurton avatar Oct 14 '22 17:10 EarlOfBurton

Yes :( Ha use docker system, lot of stuff are not permanent.

Btw. the "Woox R7052 Smart SOS Button" has only one button, in case that is important for the button map.

Only one button ? So yes, no need to use the button map, can make something faster

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_ssp0maqm",
  "modelid": "TS0215A",
  "vendor": "Woox",
  "product": "R7052 Smart SOS Button",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_SWITCH",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0500"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0401",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0500",
          "0x0501"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/enrolled"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/buttonevent",
          "awake": true,
          "parse": {
            "cl": "0x0501",
            "cmd": "0x02",
            "eval": "Item.val = 1002"
          }
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/lowbattery"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0500"
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0501"
    }
  ]
}

Smanar avatar Oct 15 '22 11:10 Smanar