Comments (8)
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.
Easy to add thanks to your detailed description ❤️
from deconz.
PR has been merged so it is available on master and will be part of 2021.7 release of hass.
from deconz.
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.
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.
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.
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.
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)
- Additional lighting effects and control HOT 2
- Expose CLIPGenericFlag sensors from deCONZ as switches to Home Assistant HOT 1
- Support for Philips Hue wall switch module HOT 4
- Deconz integration test issue HOT 1
- Add support for "Range extender" light type HOT 2
- Stuff to clean up from typing HOT 1
- Expose all available attributes of thermostat to HA bundled as device HOT 2
- 'requirements.txt' is missing in Pypi's SDIST since v90 HOT 3
- Feature request: expose more IKEA Starkvind functions to Home Assistant HOT 45
- Support events for Philips Tap Dial Switch HOT 33
- Feature request: expose more Aqara FP1 functions to Home Assistant HOT 5
- Device IP snippets
- Sensors are added to deConz but are not appearing in HA HOT 8
- Styrbar Automations deleted after update to 2023.1 HOT 2
- Smart plug consumption sensor "state is not strictly increasing" in HA HOT 1
- Legrand netatmo thermostat entitie doesn't work
- Unsupported device type ZHAParticulateMatter HOT 5
- Unknown devices for air quality HOT 4
- IKEA badring (Water Leak Sensor) HOT 1
- deCONZ entities: current or voltage are not created in HA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deconz.