Comments (2)
I start creating support for this device, can you please check and give feedback. When you think the implementation is correct, please merge.
-
added in plugin.py
from adapters.lumi.sensor_86sw1 import Sensor86Sw1
and into the self.adapter_by_model = { part
'WXKG03LM': Sensor86Sw1, # Xiaomi Aqara single key wireless wall switch
-
add a new device push_on_button.py in the devices folder with the code
import Domoticz
from devices.device import Device
class PushOnButton(Device):
def create_device(self, unit, device_id, device_name, message):
return Domoticz.Device(Unit=unit, DeviceID=device_id, Name=device_name, Type=244, subtype=73, Switchtype=9).Create()
def get_numeric_value(self, value, device):
return 1 if value.lower() == 'single' else 0
def get_string_value(self, value, device):
return 'On' if value.lower() == 'single' else 'Off'
- add a new adapter sensor_86sw1.py in teh adapters/lumi folder with the code
import Domoticz
from adapters.base_adapter import Adapter
from devices.push_on_button import PushOnButton
class Sensor86Sw1(Adapter):
def __init__(self, devices):
super().__init__(devices)
self.devices.append(PushOnButton(devices, 'switch', 'click'))
This will create a switch of the sub-type Push On Button.
I found one strang behavior, the off-delay of this created devices is not working.
In the log, I only see on values
When I created the same type by a dummy-hardware, the off-delay is working?
from domoticz-zigbee2mqtt-plugin.
@mkan1512 support for this device was added in v0.0.9 of plugin, could you please check
from domoticz-zigbee2mqtt-plugin.
Related Issues (20)
- domoticz changed in docker HOT 3
- `Xiaomi RTCZCGQ11LM Detection regions` feature support HOT 1
- Script error when trying to remove zigbee2mqtt device from frontend HOT 1
- How can we support a new device ? HOT 1
- Switch on/off command doesn't work HOT 1
- Slow reaction via domoticz device after big system update HOT 1
- WXKG11LM Aqara wireless switch no Devices Created, Allow new devices is on HOT 4
- Domoticz not show device PM2 and VOC - Vindstyrka air quality and humidity sensor
- ZTH02 small with cr2032 battery not well implemented HOT 3
- IKEA Tradfri E1743 status not changing in Domoticz HOT 2
- neo nas-PD07 motion Zigbee model TS0601 Zigbee Fabrikant _TZE200_7hfcudw5 HOT 1
- Plugin crash with Valueerror 12 not in list. HOT 3
- Xiaomi Aqara vibration sensor (DJT11LM) HOT 6
- Impossible to see frontend on domoticz dashboard HOT 2
- Impossible to pair stripe led Livarno home by LIDL HG08132 (TS0505A) HOT 1
- Depricated RType (devices) for API request. | Zigbee2mqtt plugin HOT 12
- Depricated RType (devices) for API request HOT 11
- Zigbee2MQTT UI doesn't load in domoticz after update (2024-3). HOT 1
- Plugin fails to connect due to TypeError: a bytes-like object is required, not 'str' HOT 1
- reverse position for blinds ts130f doesn't change anything in domoticz HOT 2
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 domoticz-zigbee2mqtt-plugin.