informatica:domotica:wxkg01lm
Tabla de Contenidos
Interruptor inalámbrico WXKG01LM
Información técnica
- Indentificador:
WXKG01LM - Dimensiones: 50 x 50 x 13 mm
- Protocolo de comunicación: Zigbee
- Rango de operación:
- Temperatura: -10 ºC ~ 50 ºC (precisión de ±0,3 ºC)
- Marca: Xiaomi
- Batería: CR2032
Home Assistant
Se utiliza a través del add-on zigbee2mqtt
Para emparejar hay que mantener pulsado el botón de LINK (al lado de la pila) hasta que se encienda el LED azul. Si no se encendiese en 5 segundos, seguir con el botón pulsado y tan pronto se encienda el LED, pulsar el interruptor varias veces hasta que vuelva a encenderse el LED.
Zigbee2MQTT:info 2024-02-29 21:38:42: Device '0x00158d0002c7ca22' joined
Zigbee2MQTT:info 2024-02-29 21:38:42: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00158d0002c7ca22","ieee_address":"0x00158d0002c7ca22"},"type":"device_joined"}'
(...)
Zigbee2MQTT:debug 2024-02-29 21:38:43: Saving state to file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2024-02-29 21:39:06: Successfully interviewed '0x00158d0002c7ca22', device has successfully been paired
Zigbee2MQTT:info 2024-02-29 21:39:06: Device '0x00158d0002c7ca22' is supported, identified as: Xiaomi Mi wireless switch (WXKG01LM)
Zigbee2MQTT:info 2024-02-29 21:39:06: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Mi wireless switch","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Triggered action (e.g. a button click)","label":"Action","name":"action","property":"action","type":"enum","values":["single","double","triple","quadruple","hold","release","many"]},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"WXKG01LM","options":[{"access":2,"description":"The WXKG01LM only reports a button press and release.By default, a hold action is published when there is at least 1000 ms between both events. It could be that due to delays in the network the release message is received late. This causes a single click to be identified as a hold action. If you are experiencing this you can try experimenting with this option (e.g. set it to 2000) (value is in ms).","label":"Hold timeout","name":"hold_timeout","property":"hold_timeout","type":"numeric","value_min":0},{"access":2,"description":"Sometimes it happens that the button does not send a release. To avoid problems a release is automatically send after a timeout. The default timeout is 4000 ms, you can increase it with this option (value is in ms).","label":"Hold timeout expire","name":"hold_timeout_expire","property":"hold_timeout_expire","type":"numeric","value_min":0},{"access":2,"description":"Set to false to disable the legacy integration (highly recommended), will change structure of the published payload (default true).","label":"Legacy","name":"legacy","property":"legacy","type":"binary","value_off":false,"value_on":true}],"supports_ota":false,"vendor":"Xiaomi"},"friendly_name":"0x00158d0002c7ca22","ieee_address":"0x00158d0002c7ca22","status":"successful","supported":true},"type":"device_interview"}'
En /homeassistant/zigbee2mqtt/database.db se guardan los dispositivos que se añaden al coordinador.
En /share/zigbee2mqtt/devices.yaml se incluye con el identificador que le da zigbee2mqtt tras emparejarse, pero podemos indicar un nombre más representativo con friendly_name:
Para usarlo en Home Assistant, vamos a /config/configuration.yaml:
informatica/domotica/wxkg01lm.txt · Última modificación: por tempwin

