Giter Club home page Giter Club logo

Comments (31)

T0mWz avatar T0mWz commented on June 16, 2024

Don't want to get in your way of development. Not entirely clear to me where I can easily create the merge for this. Directly in the Home Assistant git project?

But here is the code;

LIDL_SILVERCREST_DOORBELL_MODEL = "HG06668"
LIDL_SILVERCREST_DOORBELL = {
    (CONF_SHORT_PRESS, ""): {CONF_EVENT: 1002},
}

..
..
REMOTES = {
..
LIDL_SILVERCREST_DOORBELL_MODEL: LIDL_SILVERCREST_DOORBELL,
...

}

Have already tested it;
Doorbell

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Hey! Awesome!! Try it out! Put up a PR and I'll help you get it through!

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Congratulations!

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

There is still no button available. Just a tampered sensor which does not respond to button press. Is that intended?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

There is still no button available. Just a tampered sensor which does not respond to button press. Is that intended?

The button is only an event just like all other remotes. The above mentioned PR adds device triggers to automations, you will get it listed in automations but there won't be an entity for the button itself

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

There is still no button available. Just a tampered sensor which does not respond to button press. Is that intended?

The button is only an event just like all other remotes. The above mentioned PR adds device triggers to automations, you will get it listed in automations but there won't be an entity for the button itself

thanks for the fast answer. Yes but I have no button trigger to select for automations and I get the same event (0) on press as mentioned above

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

@boehser-enkel What automation tool are you using? Or only Deconz?

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Ow wait, home assistent ofcourse. Then you should be able to create an trigger like this;
LidlWirelessDoorbell

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

@boehser-enkel What automation tool are you using? Or only Deconz?

Home Assistant. But also in Phoscon I am not able to choose it as a button

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

there is only tampered and battery

E29E7829-3974-4F72-A711-3BE07DA703DB

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Hm. Which version of HA & Deconz are you using?

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

Hm. Which version of HA & Deconz are you using?

2022.3.2 & 2.14.01

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Strange, it's still in the code. Do you see the events in the logs of deconz and home assistent?

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

Strange, it's still in the code. Do you see the events in the logs of deconz and home assistent?

I see the events in HA. Can look at deconz in the evening if you need them.

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Has the model id changed? Right now it's expected to be "HG06668"

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

Has the model id changed? Right now it's expected to be "HG06668"

It’s the same

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Has the model id changed? Right now it's expected to be "HG06668"

It’s the same

Can you share a diagnostics file from the integration?

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

Has the model id changed? Right now it's expected to be "HG06668"

It’s the same

Can you share a diagnostics file from the integration?

U mean the Home Assistant Deconz Integration diagnostic file?

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

Exactly

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

config_entry-deconz-26968d9235b79c6841870ed86d4a94fe.json.txt
Here you go

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Strange, in your diagnostics the device is recognized as TS0211, instead of HG06668
For example my output;

      "54": {
        "config": {
          "battery": null,
          "enrolled": 1,
          "on": true,
          "pending": [],
          "reachable": true
        },
        "ep": 1,
        "etag": "80c742102fab2bb3da6a6b08cf363e32",
        "lastannounced": "2022-03-24T12:44:47Z",
        "lastseen": "2022-04-04T13:21Z",
        "manufacturername": "LIDL Silvercrest",
        "mode": 1,
        "modelid": "HG06668",
        "name": "Switch 54",
        "state": {
          "buttonevent": 1002,
          "lastupdated": "2022-04-28T13:10:13.704",
          "lowbattery": false,
          "tampered": false
        },
        "type": "ZHASwitch",
        "uniqueid": "84:2e:14:ff:fe:f6:d5:ea-01-0500",
        "attr": {
          "id": "54",
          "lastannounced": "2022-03-24T12:44:47Z",
          "lastseen": "2022-05-02T10:50Z",
          "manufacturername": "LIDL Silvercrest",
          "modelid": "HG06668",
          "name": "Switch 54",
          "swversion": null,
          "type": "ZHASwitch",
          "uniqueid": "84:2e:14:ff:fe:f6:d5:ea-01-0500"
        },
        "e": "changed",
        "id": "54",
        "r": "sensors",
        "t": "event"
      },

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

This is strange. Even on the device itself its printed HG06668.
Any way to work around this?

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Can you try to add here https://github.com/home-assistant/core/blob/dev/homeassistant/components/deconz/device_trigger.py#L480

LIDL_SILVERCREST_DOORBELL_MODEL2 = "TS0211"

And then here; https://github.com/home-assistant/core/blob/dev/homeassistant/components/deconz/device_trigger.py#L609

    LIDL_SILVERCREST_DOORBELL_MODEL2: LIDL_SILVERCREST_DOORBELL,

or just change HG06668 for TS0211.

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

I can't find these files in my (supervised container) installation.
Won't they be overwritten on the next update anyways?

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

I haven't experience with the supervisor setup, but can you access the Home Assistent container?
docker exec -it $(docker ps -f name=homeassistant -q) bash

Then I guess Home Assistent is in /usr/src/homeassistant/homeassistant or /usr/share/hassio/homeassistant.
But try otherwise a find; find / -name deconz

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

Changed it and did a restart of HA. Now i can select "button pressed" but it won't get recognized when i press the doorbell

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

But do you see this event on Deconz self? Wondering of there is not more different then only the device identifier.

docker logs -f --tail 100  $(docker ps -f name=deconz -q)

from deconz.

boehser-enkel avatar boehser-enkel commented on June 16, 2024

What do i have to look for?
I found this:
15:16:11:297 DEV no DDF for 0x842E14FFFEF6E87B, modelId: TS0211 15:16:11:297 DEV create on-the-fly DDF for 0x842E14FFFEF6E87B

15:16:42:740 [INFO] - No button map for: TS0211, unicast to: 0x0000, endpoint: 0x01, cluster: IAS_ZONE

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Hmm; No button map for: TS0211. So I guess you don't see a log message in deconz when you pushed the button, right?
Do you see something like this; dresden-elektronik/deconz-rest-plugin#4450 (comment)

from deconz.

Kane610 avatar Kane610 commented on June 16, 2024

No button map for: TS0211

That would mean you can either create a DDF for the file or request device support on the forums

from deconz.

T0mWz avatar T0mWz commented on June 16, 2024

Updated my deconz container, where after button mapping was broken. Here is the request in deconz;

12:09:21:872 [INFO] - No button handler for: HG06668, unicast to: 0x0000, endpoint: 0x01, cluster: IAS_ZONE (0x0500), command: STATUS_CHANGE (0x00), payload: 0D0000640000, zclSeq: 74
12:09:21:873 Websocket 172.21.0.5:47964 send message: {"e":"changed","id":"54","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2022-12-14T11:09:21.871"},"t":"event","uniqueid":"84:2e:14:ff:fe:f6:d5:ea-01-0500"} (ret = 165)
12:09:21:874 Websocket 172.21.0.5:44130 send message: {"e":"changed","id":"54","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2022-12-14T11:09:21.871"},"t":"event","uniqueid":"84:2e:14:ff:fe:f6:d5:ea-01-0500"} (ret = 165)
12:09:21:875 Websocket 172.23.0.18:58272 send message: {"e":"changed","id":"54","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2022-12-14T11:09:21.871"},"t":"event","uniqueid":"84:2e:14:ff:fe:f6:d5:ea-01-0500"} (ret = 165)
12:09:21:877 Websocket 172.23.0.18:58282 send message: {"e":"changed","id":"54","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2022-12-14T11:09:21.871"},"t":"event","uniqueid":"84:2e:14:ff:fe:f6:d5:ea-01-0500"} (ret = 165)
12:09:21:878 Websocket 172.21.0.5:52864 send message: {"e":"changed","id":"54","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2022-12-14T11:09:21.871"},"t":"event","uniqueid":"84:2e:14:ff:fe:f6:d5:ea-01-0500"} (ret = 165)
12:09:21:879 APS-DATA.request id: 161, addrmode: 0x02, addr: 0xa888, profile: 0x0104, cluster: 0x0500, ep: 0x01 -> 0x01 queue: 2 len: 5 tx.options 0x04

Device visible within HA;
Screenshot 2022-12-14 at 12 14 57

Previous trigger setup;
Screenshot 2022-12-14 at 12 14 37

New trigger;
Screenshot 2022-12-14 at 12 16 51

Can you check of this works too for you, @boehser-enkel ?

from deconz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.