openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

[deconz] add new Type ZHARelativeRotary #15559

Open NetSpider-AT opened 1 year ago

NetSpider-AT commented 1 year ago

New Sensor Type for Hue Tap dial switch it creates for the rotary information an new Sensor with Type ZHARelativeRotary

Example API information: { "config": { "battery": 100, "on": true, "reachable": true }, "etag": "", "lastannounced": "2023-09-08T06:02:39Z", "lastseen": "2023-09-08T06:12Z", "manufacturername": "Signify Netherlands B.V.", "modelid": "RDM002", "name": "RelativeRotary 48", "productname": "Hue tap dial switch", "state": { "expectedeventduration": 400, "expectedrotation": 15, "lastupdated": "2023-09-08T06:10:40.018", "rotaryevent": 1 }, "swversion": "2.59.19", "type": "ZHARelativeRotary", "uniqueid": "" }

Your Environment

OH 4.0.2 Raspbian 11 (bullseye)

J-N-K commented 1 year ago

FTR: expectedrotation from -360 to 360, rotaryevent has 1 new (start) rotation, 2 (repeat)ed rotation.