Hi @sweebee !
Thanks for picking this up and thank you for your work.
Temperature and motion is working great (however I don’t get pressure values or lux values from my devices…)
For the wireless buttons (the round once, with click, double_click and long_press) I have a problem.
The buttons are recognized as “AqaraWirelessSwitch” not as buttons. So it will only have an on/off slider (which works fine).
I don’t know why the devices are not recognized by your addon…however the events submitted by my buttons are click
, double_click
and long_click_release
or long_click_press
.
The ones in your addon are doubleClick
and longClickPress
. Maybe thats the issue already?
How are the devices recognized / sorted into categories?
I have the latest firmware on my Xiaomi Gateway. I use the sensors/gateway from Xiaomi.
Log:
12:55:22.914 [pimatic-aqara] debug: Switch {
12:55:22.914 [pimatic-aqara] debug:> domain: null,
12:55:22.914 [pimatic-aqara] debug:> _events: {},
12:55:22.914 [pimatic-aqara] debug:> _eventsCount: 0,
12:55:22.914 [pimatic-aqara] debug:> _maxListeners: undefined,
12:55:22.914 [pimatic-aqara] debug:> _sid: '158d00020f4a9b',
12:55:22.914 [pimatic-aqara] debug:> _type: 'switch',
12:55:22.914 [pimatic-aqara] debug:> _voltage: 3052 }
Edit: When I change my ‘switch’ to be recognized as a button (simply swap button and switch in the config files), I get the click
event but any other event will trigger a click
event as well…
This is the info, the switch gives when I manually query the gateway:
{u'model': u'switch', u'cmd': u'report', u'data': u'{"status":"click"}', u'short_id': 63577, u'sid': u'158d00020f4a9b'}
{u'model': u'switch', u'cmd': u'report', u'data': u'{"status":"double_click"}', u'short_id': 63577, u'sid': u'158d00020f4a9b'}