Support homeassistant discovery for MCCGQ11LM. #9

This commit is contained in:
Koen Kanters 2018-04-20 19:54:12 +02:00
parent 7cd8e74a7e
commit b9552f8ab3

View File

@ -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',