mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
Support homeassistant discovery for MCCGQ11LM. #9
This commit is contained in:
parent
7cd8e74a7e
commit
b9552f8ab3
@ -34,6 +34,16 @@ const devices = {
|
|||||||
vendor: 'Xiaomi',
|
vendor: 'Xiaomi',
|
||||||
description: 'Aqara door & window contact sensor',
|
description: 'Aqara door & window contact sensor',
|
||||||
supports: 'open and closed state',
|
supports: 'open and closed state',
|
||||||
|
homeassistant: {
|
||||||
|
type: 'binary_sensor',
|
||||||
|
discovery_payload: {
|
||||||
|
payload_on: 'open',
|
||||||
|
payload_off: 'closed',
|
||||||
|
value_template: '{{ value_json.state }}',
|
||||||
|
device_class: 'door',
|
||||||
|
json_attributes: ['battery']
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'TRADFRI bulb E27 WS opal 980lm': {
|
'TRADFRI bulb E27 WS opal 980lm': {
|
||||||
model: 'LED1545G12',
|
model: 'LED1545G12',
|
||||||
|
Loading…
Reference in New Issue
Block a user