Git Product home page Git Product logo

Comments (8)

T0mWz avatar T0mWz commented on September 6, 2024 1

Thanks!

Long press results in two lines;

So there is no release on short press? Only on long will there be press + release?

Yes, correct. Just tried again, so just to be clear

Short


2021-06-09 12:59:42 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"52","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2021-06-09T10:59:42.039"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}


Long

2021-06-09 13:01:12 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"52","r":"sensors","state":{"buttonevent":1001,"lastupdated":"2021-06-09T11:01:12.348"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

2021-06-09 13:01:13 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"52","r":"sensors","state":{"buttonevent":1003,"lastupdated":"2021-06-09T11:01:13.198"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

from deconz.

Kane610 avatar Kane610 commented on September 6, 2024 1

Easy to add thanks to your detailed description ❤️

from deconz.

Kane610 avatar Kane610 commented on September 6, 2024 1

PR has been merged so it is available on master and will be part of 2021.7 release of hass.

from deconz.

Kane610 avatar Kane610 commented on September 6, 2024

Does it only support a single press action?
I also need the modelid of the device, easiest way to get it is to enable debug per deconz integrations instructions in home assistant and look in the start up logs

Battery level support in Home Assistant is automatic if it reports its battery status as expected.

from deconz.

T0mWz avatar T0mWz commented on September 6, 2024

Hope this helps;

2021-06-09 10:34:35 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"50","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2021-06-09T08:34:35.965"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

2021-06-09 10:34:46 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"50","r":"sensors","state":{"buttonevent":1001,"lastupdated":"2021-06-09T08:34:46.333"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

2021-06-09 10:35:28 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"50","r":"sensors","state":{"buttonevent":1003,"lastupdated":"2021-06-09T08:35:28.362"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

There is only 1 button. I tried long press, fast multiple presses and short press. Hope that's all 😅

from deconz.

Kane610 avatar Kane610 commented on September 6, 2024

Yes thats about right.

I also need the modelid and what action generated what buttonevent, e.g. short press 1002, release 1001, etc...

from deconz.

T0mWz avatar T0mWz commented on September 6, 2024

Ikea Tradfri Shortcut Button - Device Type E1812

2021-06-09 12:38:02 DEBUG (MainThread) [pydeconz.websocket] {"e":"added","id":"52","r":"sensors","sensor":{"config":{"alert":"none","battery":null,"group":"25","on":true,"reachable":true},"ep":1,"etag":"7800ef83a30f231732d2b901a4bfced7","id":"52","lastseen":"2021-06-09T10:38Z","manufacturername":"IKEA of Sweden","mode":1,"modelid":"TRADFRI SHORTCUT Button","name":"TRADFRI SHORTCUT Button ","state":{"buttonevent":null,"lastupdated":"none"},"type":"ZHASwitch","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}
2021-06-09 12:38:02 DEBUG (MainThread) [pydeconz.deconzdevice] TRADFRI SHORTCUT Button  created as
{'config': {'alert': 'none',
            'battery': None,
            'group': '25',
            'on': True,
            'reachable': True},
 'ep': 1,
 'etag': '7800ef83a30f231732d2b901a4bfced7',
 'id': '52',
 'lastseen': '2021-06-09T10:38Z',
 'manufacturername': 'IKEA of Sweden',
 'mode': 1,
 'modelid': 'TRADFRI SHORTCUT Button',
 'name': 'TRADFRI SHORTCUT Button ',
 'state': {'buttonevent': None, 'lastupdated': 'none'},
 'type': 'ZHASwitch',
 'uniqueid': '68:0a:e2:ff:fe:34:cf:23-01-1000'}

Short press

2021-06-09 12:39:45 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"52","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2021-06-09T10:39:45.537"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

Long press results in two lines;

  • PUSH
 2021-06-09 12:40:20 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"52","r":"sensors","state":{"buttonevent":1001,"lastupdated":"2021-06-09T10:40:20.666"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}
  • Release
2021-06-09 12:40:20 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"52","r":"sensors","state":{"buttonevent":1003,"lastupdated":"2021-06-09T10:40:20.693"},"t":"event","uniqueid":"68:0a:e2:ff:fe:34:cf:23-01-1000"}

from deconz.

Kane610 avatar Kane610 commented on September 6, 2024

Thanks!

Long press results in two lines;

So there is no release on short press? Only on long will there be press + release?

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.