2019-09-09 10:48:09 -07:00
|
|
|
const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters');
|
2018-11-16 12:23:11 -07:00
|
|
|
const settings = require('../util/settings');
|
|
|
|
const logger = require('../util/logger');
|
2018-12-07 15:17:29 -07:00
|
|
|
const zigbee2mqttVersion = require('../../package.json').version;
|
2019-09-17 09:32:16 -07:00
|
|
|
const BaseExtension = require('./baseExtension');
|
2020-03-15 01:38:39 -07:00
|
|
|
const objectAssignDeep = require(`object-assign-deep`);
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2019-09-22 11:02:46 -07:00
|
|
|
const cfg = {
|
2018-04-23 09:29:35 -07:00
|
|
|
// Binary sensor
|
|
|
|
'binary_sensor_occupancy': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'occupancy',
|
|
|
|
discovery_payload: {
|
2018-04-23 12:44:06 -07:00
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
2018-04-23 09:29:35 -07:00
|
|
|
value_template: '{{ value_json.occupancy }}',
|
|
|
|
device_class: 'motion',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2020-03-27 12:44:10 -07:00
|
|
|
'binary_sensor_sos': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'sos',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.sos }}',
|
|
|
|
},
|
|
|
|
},
|
2018-10-31 09:10:28 -07:00
|
|
|
'binary_sensor_presence': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'presence',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.presence }}',
|
|
|
|
device_class: 'presence',
|
|
|
|
},
|
|
|
|
},
|
2020-01-03 14:28:21 -07:00
|
|
|
'binary_sensor_tamper': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'tamper',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: false,
|
|
|
|
payload_off: true,
|
|
|
|
value_template: '{{ value_json.tamper }}',
|
|
|
|
},
|
|
|
|
},
|
2018-04-23 12:44:06 -07:00
|
|
|
'binary_sensor_contact': {
|
2018-04-23 09:29:35 -07:00
|
|
|
type: 'binary_sensor',
|
2018-04-23 12:44:06 -07:00
|
|
|
object_id: 'contact',
|
2018-04-23 09:29:35 -07:00
|
|
|
discovery_payload: {
|
2018-04-23 12:44:06 -07:00
|
|
|
payload_on: false,
|
|
|
|
payload_off: true,
|
|
|
|
value_template: '{{ value_json.contact }}',
|
2018-04-23 09:29:35 -07:00
|
|
|
device_class: 'door',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
|
|
|
'binary_sensor_water_leak': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'water_leak',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.water_leak }}',
|
|
|
|
device_class: 'moisture',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2018-05-16 11:15:50 -07:00
|
|
|
'binary_sensor_smoke': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'smoke',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.smoke }}',
|
|
|
|
device_class: 'smoke',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-05-16 11:15:50 -07:00
|
|
|
},
|
2018-08-30 09:06:52 -07:00
|
|
|
'binary_sensor_gas': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'gas',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.gas }}',
|
|
|
|
device_class: 'gas',
|
|
|
|
},
|
|
|
|
},
|
2019-03-13 11:41:58 -07:00
|
|
|
'binary_sensor_carbon_monoxide': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'carbon_monoxide',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.carbon_monoxide }}',
|
|
|
|
device_class: 'safety',
|
|
|
|
},
|
|
|
|
},
|
2018-05-17 09:03:54 -07:00
|
|
|
'binary_sensor_router': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'router',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.state }}',
|
|
|
|
device_class: 'connectivity',
|
|
|
|
},
|
|
|
|
},
|
2019-02-26 12:59:33 -07:00
|
|
|
'binary_sensor_battery_low': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'battery_low',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.battery_low}}',
|
|
|
|
device_class: 'battery',
|
|
|
|
},
|
|
|
|
},
|
2020-02-16 08:00:15 -07:00
|
|
|
'binary_sensor_update_available': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'update_available',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: true,
|
|
|
|
payload_off: false,
|
|
|
|
value_template: '{{ value_json.update_available}}',
|
|
|
|
},
|
|
|
|
},
|
2019-07-08 12:42:07 -07:00
|
|
|
'binary_sensor_lock': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'lock',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: 'UNLOCK',
|
|
|
|
payload_off: 'LOCK',
|
|
|
|
value_template: '{{ value_json.state}}',
|
|
|
|
device_class: 'lock',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'binary_sensor_lock_reverse': {
|
|
|
|
type: 'binary_sensor',
|
|
|
|
object_id: 'lock_reverse',
|
|
|
|
discovery_payload: {
|
|
|
|
payload_on: 'UNLOCK',
|
|
|
|
payload_off: 'LOCK',
|
|
|
|
value_template: '{{ value_json.reverse}}',
|
|
|
|
device_class: 'lock',
|
|
|
|
},
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
|
|
|
|
// Sensor
|
|
|
|
'sensor_illuminance': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'illuminance',
|
|
|
|
discovery_payload: {
|
2020-02-25 12:37:42 -07:00
|
|
|
unit_of_measurement: '-',
|
2018-10-24 12:10:42 -07:00
|
|
|
device_class: 'illuminance',
|
2018-04-23 09:29:35 -07:00
|
|
|
value_template: '{{ value_json.illuminance }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2020-02-25 12:37:42 -07:00
|
|
|
'sensor_illuminance_lux': {
|
|
|
|
type: 'sensor',
|
2020-04-03 02:12:58 -07:00
|
|
|
object_id: 'illuminance_lux',
|
2020-02-25 12:37:42 -07:00
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'lx',
|
|
|
|
device_class: 'illuminance',
|
|
|
|
value_template: '{{ value_json.illuminance_lux }}',
|
|
|
|
},
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
'sensor_humidity': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'humidity',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: '%',
|
2018-10-24 12:10:42 -07:00
|
|
|
device_class: 'humidity',
|
2018-04-23 09:29:35 -07:00
|
|
|
value_template: '{{ value_json.humidity }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
|
|
|
'sensor_temperature': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'temperature',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: '°C',
|
2018-10-24 12:10:42 -07:00
|
|
|
device_class: 'temperature',
|
2018-04-23 09:29:35 -07:00
|
|
|
value_template: '{{ value_json.temperature }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2020-01-06 13:36:45 -07:00
|
|
|
'sensor_local_temperature': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'local_temperature',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: '°C',
|
|
|
|
device_class: 'temperature',
|
|
|
|
value_template: '{{ value_json.local_temperature }}',
|
|
|
|
},
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
'sensor_pressure': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'pressure',
|
|
|
|
discovery_payload: {
|
2018-10-24 12:10:42 -07:00
|
|
|
unit_of_measurement: 'hPa',
|
|
|
|
device_class: 'pressure',
|
2018-04-23 09:29:35 -07:00
|
|
|
value_template: '{{ value_json.pressure }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2018-05-08 11:13:01 -07:00
|
|
|
'sensor_click': {
|
2018-04-23 09:29:35 -07:00
|
|
|
type: 'sensor',
|
2018-05-08 11:13:01 -07:00
|
|
|
object_id: 'click',
|
2018-04-23 09:29:35 -07:00
|
|
|
discovery_payload: {
|
|
|
|
icon: 'mdi:toggle-switch',
|
|
|
|
value_template: '{{ value_json.click }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2018-04-23 13:36:30 -07:00
|
|
|
'sensor_power': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'power',
|
|
|
|
discovery_payload: {
|
2019-07-11 10:36:50 -07:00
|
|
|
unit_of_measurement: 'W',
|
2020-03-20 11:46:57 -07:00
|
|
|
icon: 'mdi:flash',
|
2018-04-23 13:36:30 -07:00
|
|
|
value_template: '{{ value_json.power }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-04-23 13:36:30 -07:00
|
|
|
},
|
2019-07-11 10:36:50 -07:00
|
|
|
'sensor_current': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'current',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'A',
|
2020-03-20 11:46:57 -07:00
|
|
|
icon: 'mdi:current-ac',
|
2019-07-11 10:36:50 -07:00
|
|
|
value_template: '{{ value_json.current }}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'sensor_voltage': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'voltage',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'V',
|
2020-03-20 11:46:57 -07:00
|
|
|
icon: 'mdi:alpha-v',
|
2019-07-11 10:36:50 -07:00
|
|
|
value_template: '{{ value_json.voltage }}',
|
|
|
|
},
|
|
|
|
},
|
2020-03-27 12:44:10 -07:00
|
|
|
'sensor_current_phase_b': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'current_phase_b',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'A',
|
|
|
|
icon: 'mdi:current-ac',
|
|
|
|
value_template: '{{ value_json.current_phase_b }}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'sensor_voltage_phase_b': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'voltage_phase_b',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'V',
|
|
|
|
icon: 'mdi:alpha-v',
|
|
|
|
value_template: '{{ value_json.voltage_phase_b }}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'sensor_current_phase_c': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'current_phase_c',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'A',
|
|
|
|
icon: 'mdi:current-ac',
|
|
|
|
value_template: '{{ value_json.current_phase_c }}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'sensor_voltage_phase_c': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'voltage_phase_c',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'V',
|
|
|
|
icon: 'mdi:alpha-v',
|
|
|
|
value_template: '{{ value_json.voltage_phase_c }}',
|
|
|
|
},
|
|
|
|
},
|
2020-03-20 11:46:57 -07:00
|
|
|
'sensor_energy': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'energy',
|
|
|
|
discovery_payload: {
|
2020-03-28 11:26:02 -07:00
|
|
|
unit_of_measurement: 'kWh',
|
2020-03-20 11:46:57 -07:00
|
|
|
icon: 'mdi:power-plug',
|
|
|
|
value_template: '{{ value_json.energy }}',
|
|
|
|
},
|
|
|
|
},
|
2018-05-08 11:20:57 -07:00
|
|
|
'sensor_action': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'action',
|
|
|
|
discovery_payload: {
|
2018-07-10 09:43:31 -07:00
|
|
|
icon: 'mdi:gesture-double-tap',
|
2018-05-08 11:20:57 -07:00
|
|
|
value_template: '{{ value_json.action }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-05-08 11:20:57 -07:00
|
|
|
},
|
2020-04-05 12:53:18 -07:00
|
|
|
'sensor_action_color': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'action_color',
|
|
|
|
discovery_payload: {
|
|
|
|
value_template: '{{ value_json.action_color }}',
|
|
|
|
icon: 'mdi:palette',
|
|
|
|
},
|
|
|
|
},
|
2018-06-08 11:34:34 -07:00
|
|
|
'sensor_brightness': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'brightness',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'brightness',
|
|
|
|
icon: 'mdi:brightness-5',
|
|
|
|
value_template: '{{ value_json.brightness }}',
|
|
|
|
},
|
|
|
|
},
|
2018-09-18 13:24:17 -07:00
|
|
|
'sensor_lock': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'lock',
|
|
|
|
discovery_payload: {
|
|
|
|
icon: 'mdi:lock',
|
|
|
|
value_template: '{{ value_json.inserted }}',
|
|
|
|
},
|
|
|
|
},
|
2018-11-19 12:43:23 -07:00
|
|
|
'sensor_battery': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'battery',
|
|
|
|
discovery_payload: {
|
2019-01-06 07:35:30 -07:00
|
|
|
unit_of_measurement: '%',
|
2018-11-19 12:43:23 -07:00
|
|
|
device_class: 'battery',
|
|
|
|
value_template: '{{ value_json.battery }}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'sensor_linkquality': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'linkquality',
|
|
|
|
discovery_payload: {
|
2020-01-25 12:43:51 -07:00
|
|
|
icon: 'mdi:signal',
|
|
|
|
unit_of_measurement: 'lqi',
|
2018-11-19 12:43:23 -07:00
|
|
|
value_template: '{{ value_json.linkquality }}',
|
|
|
|
},
|
|
|
|
},
|
2018-12-27 14:23:57 -07:00
|
|
|
'sensor_gas_density': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'gas_density',
|
|
|
|
discovery_payload: {
|
|
|
|
value_template: '{{ value_json.gas_density }}',
|
|
|
|
icon: 'mdi:google-circles-communities',
|
|
|
|
},
|
|
|
|
},
|
2019-11-08 10:59:27 -07:00
|
|
|
'sensor_smoke_density': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'smoke_density',
|
|
|
|
discovery_payload: {
|
|
|
|
value_template: '{{ value_json.smoke_density }}',
|
|
|
|
icon: 'mdi:google-circles-communities',
|
|
|
|
},
|
|
|
|
},
|
2018-12-27 14:23:57 -07:00
|
|
|
'sensor_cover': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'cover',
|
|
|
|
discovery_payload: {
|
|
|
|
value_template: '{{ value_json.position }}',
|
|
|
|
icon: 'mdi:view-array',
|
|
|
|
},
|
|
|
|
},
|
2020-01-08 09:57:40 -07:00
|
|
|
'sensor_consumption': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'consumption',
|
|
|
|
discovery_payload: {
|
|
|
|
unit_of_measurement: 'kWh',
|
|
|
|
value_template: '{{ value_json.consumption }}',
|
|
|
|
icon: 'mdi:flash',
|
|
|
|
},
|
|
|
|
},
|
2019-11-03 13:23:41 -07:00
|
|
|
'sensor_sensitivity': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'sensitivity',
|
|
|
|
discovery_payload: {
|
|
|
|
value_template: '{{ value_json.sensitivity }}',
|
|
|
|
icon: 'mdi:filter-variant',
|
|
|
|
},
|
|
|
|
},
|
2020-01-25 12:00:22 -07:00
|
|
|
'sensor_strength': {
|
|
|
|
type: 'sensor',
|
|
|
|
object_id: 'strength',
|
|
|
|
discovery_payload: {
|
|
|
|
value_template: '{{ value_json.strength }}',
|
|
|
|
icon: 'mdi:weight',
|
|
|
|
},
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
|
|
|
|
// Light
|
2019-10-03 10:03:36 -07:00
|
|
|
'light_brightness_colorxy_white': {
|
2019-09-20 12:25:56 -07:00
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
|
|
|
xy: true,
|
|
|
|
white_value: true,
|
|
|
|
schema: 'json',
|
|
|
|
command_topic: true,
|
|
|
|
},
|
|
|
|
},
|
2020-01-08 12:06:01 -07:00
|
|
|
'light_brightness_colortemp_colorxy_white': {
|
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
|
|
|
xy: true,
|
|
|
|
white_value: true,
|
|
|
|
schema: 'json',
|
|
|
|
command_topic: true,
|
|
|
|
color_temp: true,
|
|
|
|
},
|
|
|
|
},
|
2018-11-16 12:23:11 -07:00
|
|
|
'light_brightness_colortemp_colorxy': {
|
2018-04-23 09:29:35 -07:00
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
|
|
|
color_temp: true,
|
|
|
|
xy: true,
|
2018-12-13 13:18:13 -07:00
|
|
|
schema: 'json',
|
2018-05-17 08:20:46 -07:00
|
|
|
command_topic: true,
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2018-11-16 12:23:11 -07:00
|
|
|
'light_brightness_colorxy': {
|
2018-06-01 13:05:49 -07:00
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
|
|
|
xy: true,
|
2018-12-13 13:18:13 -07:00
|
|
|
schema: 'json',
|
2018-06-01 13:05:49 -07:00
|
|
|
command_topic: true,
|
|
|
|
},
|
|
|
|
},
|
2020-01-03 14:28:21 -07:00
|
|
|
'light_brightness_colortemp_colorhs': {
|
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
|
|
|
color_temp: true,
|
|
|
|
hs: true,
|
|
|
|
schema: 'json',
|
|
|
|
command_topic: true,
|
|
|
|
},
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
'light_brightness_colortemp': {
|
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
|
|
|
color_temp: true,
|
2018-12-13 13:18:13 -07:00
|
|
|
schema: 'json',
|
2018-05-17 08:20:46 -07:00
|
|
|
command_topic: true,
|
|
|
|
},
|
2018-04-23 09:29:35 -07:00
|
|
|
},
|
2018-05-06 09:08:10 -07:00
|
|
|
'light_brightness': {
|
|
|
|
type: 'light',
|
|
|
|
object_id: 'light',
|
|
|
|
discovery_payload: {
|
|
|
|
brightness: true,
|
2018-12-13 13:18:13 -07:00
|
|
|
schema: 'json',
|
2018-05-17 08:20:46 -07:00
|
|
|
command_topic: true,
|
|
|
|
},
|
2018-05-06 09:08:10 -07:00
|
|
|
},
|
2018-04-23 13:36:30 -07:00
|
|
|
|
|
|
|
// Switch
|
|
|
|
'switch': {
|
|
|
|
type: 'switch',
|
|
|
|
object_id: 'switch',
|
|
|
|
discovery_payload: {
|
2018-04-24 10:03:09 -07:00
|
|
|
payload_off: 'OFF',
|
|
|
|
payload_on: 'ON',
|
2018-04-23 13:36:30 -07:00
|
|
|
value_template: '{{ value_json.state }}',
|
2018-05-17 08:20:46 -07:00
|
|
|
command_topic: true,
|
|
|
|
},
|
2018-04-24 10:30:56 -07:00
|
|
|
},
|
2020-04-02 05:29:39 -07:00
|
|
|
'switch_window_detection': {
|
|
|
|
type: 'switch',
|
|
|
|
object_id: 'window_detection',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: true,
|
|
|
|
command_topic: true,
|
|
|
|
command_topic_postfix: 'window_detection',
|
|
|
|
payload_off: 'OFF',
|
|
|
|
payload_on: 'ON',
|
|
|
|
state_off: 'OFF',
|
|
|
|
state_on: 'ON',
|
|
|
|
value_template: '{{ value_json.window_detection }}',
|
|
|
|
icon: 'mdi:window-open-variant',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'switch_valve_detection': {
|
|
|
|
type: 'switch',
|
|
|
|
object_id: 'valve_detection',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: true,
|
|
|
|
command_topic: true,
|
|
|
|
command_topic_postfix: 'valve_detection',
|
|
|
|
payload_off: 'OFF',
|
|
|
|
payload_on: 'ON',
|
|
|
|
state_off: 'OFF',
|
|
|
|
state_on: 'ON',
|
|
|
|
value_template: '{{ value_json.valve_detection }}',
|
|
|
|
},
|
|
|
|
},
|
2018-12-27 14:23:57 -07:00
|
|
|
|
|
|
|
// Cover
|
|
|
|
'cover': {
|
|
|
|
type: 'cover',
|
|
|
|
object_id: 'cover',
|
|
|
|
discovery_payload: {
|
|
|
|
command_topic: true,
|
|
|
|
optimistic: true,
|
|
|
|
},
|
|
|
|
},
|
2019-02-25 09:56:47 -07:00
|
|
|
'cover_position': {
|
2019-02-23 08:02:45 -07:00
|
|
|
type: 'cover',
|
|
|
|
object_id: 'cover',
|
|
|
|
discovery_payload: {
|
|
|
|
command_topic: true,
|
|
|
|
position_topic: true,
|
|
|
|
set_position_topic: true,
|
|
|
|
set_position_template: '{ "position": {{ position }} }',
|
|
|
|
value_template: '{{ value_json.position }}',
|
|
|
|
state_topic: false,
|
|
|
|
},
|
|
|
|
},
|
2019-08-08 11:26:50 -07:00
|
|
|
'cover_position_tilt': {
|
|
|
|
type: 'cover',
|
|
|
|
object_id: 'cover',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: false,
|
|
|
|
command_topic: true,
|
|
|
|
set_position_topic: true,
|
|
|
|
set_position_template: '{ "position": {{ position }} }',
|
|
|
|
tilt_command_topic: true,
|
|
|
|
position_topic: true,
|
|
|
|
value_template: '{{ value_json.position }}',
|
|
|
|
tilt_status_topic: true,
|
|
|
|
tilt_status_template: '{{ value_json.tilt }}',
|
|
|
|
},
|
|
|
|
},
|
2019-02-11 11:59:50 -07:00
|
|
|
|
|
|
|
// Lock
|
|
|
|
'lock': {
|
|
|
|
type: 'lock',
|
|
|
|
object_id: 'lock',
|
|
|
|
discovery_payload: {
|
|
|
|
command_topic: true,
|
|
|
|
value_template: '{{ value_json.state }}',
|
2020-01-16 14:25:58 -07:00
|
|
|
state_locked: 'LOCK',
|
|
|
|
state_unlocked: 'UNLOCK',
|
2019-02-11 11:59:50 -07:00
|
|
|
},
|
|
|
|
},
|
2020-01-06 13:36:45 -07:00
|
|
|
'lock_keypad_lockout': {
|
|
|
|
type: 'lock',
|
|
|
|
object_id: 'keypad_lock',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: true,
|
|
|
|
command_topic: true,
|
|
|
|
command_topic_postfix: 'keypad_lockout',
|
|
|
|
payload_unlock: '0',
|
|
|
|
payload_lock: '1',
|
|
|
|
value_template: '{{ value_json.keypad_lockout }}',
|
|
|
|
},
|
|
|
|
},
|
2020-04-02 05:29:39 -07:00
|
|
|
'lock_child_lock': {
|
|
|
|
type: 'lock',
|
|
|
|
object_id: 'child_lock',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: true,
|
|
|
|
command_topic: true,
|
|
|
|
command_topic_postfix: 'child_lock',
|
|
|
|
payload_lock: 'LOCK',
|
|
|
|
payload_unlock: 'UNLOCK',
|
|
|
|
state_locked: 'LOCKED',
|
|
|
|
state_unlocked: 'UNLOCKED',
|
|
|
|
value_template: '{{ value_json.child_lock }}',
|
|
|
|
},
|
|
|
|
},
|
2019-04-16 07:31:05 -07:00
|
|
|
|
|
|
|
// Thermostat/HVAC
|
2019-12-13 11:00:02 -07:00
|
|
|
'thermostat': (minTemp=7, maxTemp=30, temperatureStateProperty='occupied_heating_setpoint', tempStep=1) => {
|
2019-10-17 09:31:42 -07:00
|
|
|
return {
|
|
|
|
type: 'climate',
|
|
|
|
object_id: 'climate',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: false,
|
|
|
|
min_temp: `${minTemp}`,
|
|
|
|
max_temp: `${maxTemp}`,
|
|
|
|
modes: ['off', 'auto', 'heat'],
|
|
|
|
mode_state_topic: true,
|
|
|
|
mode_state_template: '{{ value_json.system_mode }}',
|
|
|
|
mode_command_topic: true,
|
|
|
|
current_temperature_topic: true,
|
|
|
|
current_temperature_template: '{{ value_json.local_temperature }}',
|
|
|
|
temperature_state_topic: true,
|
|
|
|
temperature_state_template: `{{ value_json.${temperatureStateProperty} }}`,
|
|
|
|
temperature_command_topic: temperatureStateProperty,
|
2019-12-13 11:00:02 -07:00
|
|
|
temp_step: tempStep,
|
2020-01-06 13:36:45 -07:00
|
|
|
action_topic: true,
|
|
|
|
action_template: '{{ value_json.operation }}',
|
2019-10-17 09:31:42 -07:00
|
|
|
},
|
|
|
|
};
|
2019-04-16 07:31:05 -07:00
|
|
|
},
|
2020-03-29 12:36:59 -07:00
|
|
|
'thermostat_heatcool': /* istanbul ignore next */ (minTemp=7, maxTemp=30, tempStep=0.5, fanModes=[]) => {
|
2020-03-29 12:22:48 -07:00
|
|
|
return {
|
|
|
|
type: 'climate',
|
|
|
|
object_id: 'climate',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: false,
|
|
|
|
unit_of_measurement: '°C',
|
|
|
|
min_temp: `${minTemp}`,
|
|
|
|
max_temp: `${maxTemp}`,
|
|
|
|
modes: ['off', 'auto', 'heat', 'cool'],
|
|
|
|
mode_state_topic: true,
|
|
|
|
mode_state_template: '{{ value_json.system_mode }}',
|
|
|
|
mode_command_topic: true,
|
|
|
|
current_temperature_topic: true,
|
|
|
|
current_temperature_template: '{{ value_json.local_temperature }}',
|
|
|
|
temperature_low_state_topic: true,
|
|
|
|
temperature_low_state_template: `{{ value_json.occupied_heating_setpoint }}`,
|
|
|
|
temperature_high_state_topic: true,
|
|
|
|
temperature_high_state_template: `{{ value_json.occupied_cooling_setpoint }}`,
|
|
|
|
temperature_low_command_topic: 'occupied_heating_setpoint',
|
|
|
|
temperature_high_command_topic: 'occupied_cooling_setpoint',
|
|
|
|
temp_step: tempStep,
|
|
|
|
action_topic: true,
|
|
|
|
action_template:
|
|
|
|
'{% set values = {\'idle\':\'off\',\'heat\':\'heating\',\'cool\':\'cooling\',\'fan only\':\'fan\'}'+
|
|
|
|
' %}{{ values[value_json.running_state] }}',
|
|
|
|
fan_modes: fanModes,
|
|
|
|
fan_mode_command_topic: true,
|
|
|
|
fan_mode_state_topic: true,
|
|
|
|
fan_mode_state_template: '{{ value_json.fan_mode }}',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
2019-04-24 11:59:06 -07:00
|
|
|
|
|
|
|
// Fan
|
|
|
|
'fan': {
|
|
|
|
type: 'fan',
|
|
|
|
object_id: 'fan',
|
|
|
|
discovery_payload: {
|
|
|
|
state_topic: true,
|
|
|
|
state_value_template: '{{ value_json.fan_state }}',
|
|
|
|
command_topic: true,
|
|
|
|
command_topic_postfix: 'fan_state',
|
|
|
|
speed_state_topic: true,
|
|
|
|
speed_command_topic: true,
|
|
|
|
speed_value_template: '{{ value_json.fan_mode }}',
|
|
|
|
speeds: ['off', 'low', 'medium', 'high', 'on', 'auto', 'smart'],
|
|
|
|
},
|
|
|
|
},
|
2020-02-29 10:07:15 -07:00
|
|
|
|
|
|
|
// Trigger
|
|
|
|
'trigger_action': {
|
|
|
|
type: 'device_automation',
|
|
|
|
discovery_payload: {
|
|
|
|
automation_type: 'trigger',
|
|
|
|
type: 'action',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'trigger_click': {
|
|
|
|
type: 'device_automation',
|
|
|
|
discovery_payload: {
|
|
|
|
automation_type: 'trigger',
|
|
|
|
type: 'click',
|
|
|
|
},
|
|
|
|
},
|
2018-08-04 11:05:34 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
const switchWithPostfix = (postfix) => {
|
|
|
|
return {
|
2018-04-29 05:09:49 -07:00
|
|
|
type: 'switch',
|
2018-08-04 11:05:34 -07:00
|
|
|
object_id: `switch_${postfix}`,
|
2018-04-29 05:09:49 -07:00
|
|
|
discovery_payload: {
|
|
|
|
payload_off: 'OFF',
|
|
|
|
payload_on: 'ON',
|
2018-08-04 11:05:34 -07:00
|
|
|
value_template: `{{ value_json.state_${postfix} }}`,
|
2018-04-29 05:09:49 -07:00
|
|
|
command_topic: true,
|
2018-08-04 11:05:34 -07:00
|
|
|
command_topic_prefix: postfix,
|
2018-05-17 08:20:46 -07:00
|
|
|
},
|
2018-08-04 11:05:34 -07:00
|
|
|
};
|
2018-04-23 09:29:35 -07:00
|
|
|
};
|
|
|
|
|
2020-03-15 01:38:39 -07:00
|
|
|
const lightWithPostfix = (configType, postfix) => {
|
|
|
|
const config = objectAssignDeep.noMutate(cfg[configType]);
|
|
|
|
config['object_id'] = `light_${postfix}`;
|
|
|
|
config['discovery_payload']['command_topic_prefix'] = postfix;
|
|
|
|
config['discovery_payload']['state_topic_postfix'] = postfix;
|
|
|
|
return config;
|
2020-03-02 13:11:54 -07:00
|
|
|
};
|
|
|
|
|
2018-05-16 10:40:05 -07:00
|
|
|
// Map homeassitant configurations to devices.
|
|
|
|
const mapping = {
|
2019-09-22 11:02:46 -07:00
|
|
|
'WXKG01LM': [cfg.sensor_click, cfg.sensor_battery],
|
2020-02-16 12:55:40 -07:00
|
|
|
'WXKG11LM': [cfg.sensor_click, cfg.sensor_battery, cfg.sensor_action],
|
2019-09-22 11:02:46 -07:00
|
|
|
'WXKG12LM': [cfg.sensor_click, cfg.sensor_battery, cfg.sensor_action],
|
|
|
|
// DEPRECATED; BREAKING_IMPROVEMENT: only use sensor_click for WXKG03LM (action hold -> click hold)
|
|
|
|
'WXKG03LM': [cfg.sensor_click, cfg.sensor_battery, cfg.sensor_action],
|
|
|
|
'WXKG02LM': [cfg.sensor_click, cfg.sensor_battery],
|
|
|
|
'QBKG04LM': [cfg.switch, cfg.sensor_click, cfg.sensor_action],
|
|
|
|
'QBKG03LM': [switchWithPostfix('left'), switchWithPostfix('right'), cfg.sensor_click, cfg.sensor_temperature],
|
|
|
|
'WSDCGQ01LM': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
|
|
|
'WSDCGQ11LM': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_pressure, cfg.sensor_battery],
|
|
|
|
'RTCGQ01LM': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
2020-02-26 09:20:31 -07:00
|
|
|
'RTCGQ11LM': [cfg.binary_sensor_occupancy, cfg.sensor_illuminance, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'MCCGQ01LM': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'MCCGQ11LM': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'SJCGQ11LM': [cfg.binary_sensor_water_leak, cfg.sensor_battery],
|
|
|
|
'MFKZQ01LM': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'ZNCZ02LM': [cfg.switch, cfg.sensor_power],
|
|
|
|
'QBCZ11LM': [cfg.switch, cfg.sensor_power],
|
|
|
|
'LED1545G12': [cfg.light_brightness_colortemp],
|
|
|
|
'LED1623G12': [cfg.light_brightness],
|
|
|
|
'LED1622G12': [cfg.light_brightness],
|
|
|
|
'LED1537R6': [cfg.light_brightness_colortemp],
|
|
|
|
'LED1650R5': [cfg.light_brightness],
|
|
|
|
'LED1536G5': [cfg.light_brightness_colortemp],
|
|
|
|
'7299760PH': [cfg.light_brightness_colorxy],
|
|
|
|
'7146060PH': [cfg.light_brightness_colortemp_colorxy],
|
2019-12-07 09:29:37 -07:00
|
|
|
'7602031P7': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'046677476816': [cfg.light_brightness],
|
|
|
|
'F7C033': [cfg.light_brightness],
|
2019-11-08 10:59:27 -07:00
|
|
|
'JTYJ-GD-01LM/BW': [cfg.binary_sensor_smoke, cfg.sensor_battery, cfg.sensor_sensitivity, cfg.sensor_smoke_density],
|
2019-09-22 11:02:46 -07:00
|
|
|
'PLUG EDP RE:DY': [cfg.switch, cfg.sensor_power],
|
|
|
|
'SWITCH EDP RE:DY': [cfg.switch],
|
|
|
|
'CC2530.ROUTER': [cfg.binary_sensor_router],
|
|
|
|
'AA70155': [cfg.light_brightness_colortemp],
|
2019-12-26 13:32:34 -07:00
|
|
|
'A9A19A60WESDZ02': [cfg.light_brightness_colortemp],
|
2019-09-22 11:02:46 -07:00
|
|
|
'4058075816718': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'AA69697': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'HALIGHTDIMWWE27': [cfg.light_brightness],
|
|
|
|
'HALIGHTDIMWWB22': [cfg.light_brightness],
|
|
|
|
'AB3257001NJ': [cfg.switch],
|
|
|
|
'AC10691': [cfg.switch],
|
|
|
|
'8718696449691': [cfg.light_brightness],
|
|
|
|
'RB 185 C': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'BY 185 C': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'9290012573A': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'LED1624G9': [cfg.light_brightness_colorxy],
|
|
|
|
'LED1837R5': [cfg.light_brightness],
|
|
|
|
'73742': [cfg.light_brightness_colortemp],
|
|
|
|
'73740': [cfg.light_brightness_colortemp],
|
|
|
|
'73739': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-16 13:15:19 -07:00
|
|
|
'72569': [cfg.light_brightness_colortemp],
|
2020-02-14 08:52:07 -07:00
|
|
|
'72567': [cfg.light_brightness_colortemp],
|
2020-03-21 07:37:43 -07:00
|
|
|
'75541': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'22670': [cfg.light_brightness],
|
|
|
|
'ICTC-G-1': [cfg.sensor_brightness, cfg.sensor_battery, cfg.sensor_action],
|
|
|
|
'ICPSHC24-30EU-IL-1': [cfg.light_brightness],
|
|
|
|
'45852GE': [cfg.light_brightness],
|
|
|
|
'E11-G13': [cfg.light_brightness],
|
|
|
|
'LED1649C5': [cfg.light_brightness],
|
|
|
|
'ICPSHC24-10EU-IL-1': [cfg.light_brightness],
|
|
|
|
'LED1546G12': [cfg.light_brightness_colortemp],
|
|
|
|
'L1527': [cfg.light_brightness_colortemp],
|
|
|
|
'L1529': [cfg.light_brightness_colortemp],
|
|
|
|
'L1528': [cfg.light_brightness_colortemp],
|
|
|
|
'L1531': [cfg.light_brightness_colortemp],
|
|
|
|
'RB 165': [cfg.light_brightness],
|
|
|
|
'RB 175 W': [cfg.light_brightness],
|
|
|
|
'RS 125': [cfg.light_brightness],
|
|
|
|
'RS 225': [cfg.light_brightness],
|
|
|
|
'RB 145': [cfg.light_brightness],
|
|
|
|
'RB 245': [cfg.light_brightness],
|
|
|
|
'PL 110': [cfg.light_brightness],
|
|
|
|
'ST 110': [cfg.light_brightness],
|
|
|
|
'UC 110': [cfg.light_brightness],
|
|
|
|
'DL 110 N': [cfg.light_brightness],
|
|
|
|
'DL 110 W': [cfg.light_brightness],
|
|
|
|
'SL 110 N': [cfg.light_brightness],
|
|
|
|
'SL 110 M': [cfg.light_brightness],
|
|
|
|
'SL 110 W': [cfg.light_brightness],
|
|
|
|
'AA68199': [cfg.light_brightness_colortemp],
|
|
|
|
'QBKG11LM': [cfg.switch, cfg.sensor_power, cfg.sensor_click],
|
2020-02-26 14:02:04 -07:00
|
|
|
'QBKG12LM': [
|
|
|
|
switchWithPostfix('left'), switchWithPostfix('right'), cfg.sensor_power, cfg.sensor_click,
|
|
|
|
cfg.sensor_temperature,
|
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'K2RGBW01': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'9290011370': [cfg.light_brightness],
|
|
|
|
'DNCKATSW001': [cfg.switch],
|
|
|
|
'Z809A': [cfg.switch, cfg.sensor_power],
|
|
|
|
'NL08-0800': [cfg.light_brightness],
|
2020-01-03 10:55:57 -07:00
|
|
|
'98425031': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'915005106701': [cfg.light_brightness_colortemp_colorxy],
|
2019-12-23 13:08:40 -07:00
|
|
|
'Aj_Zigbee_Led_Strip': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'AB32840': [cfg.light_brightness_colortemp],
|
|
|
|
'8718696485880': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'8718696598283': [cfg.light_brightness_colortemp],
|
|
|
|
'8718696695203': [cfg.light_brightness_colortemp],
|
|
|
|
'73693': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'324131092621': [cfg.sensor_action, cfg.sensor_battery],
|
2020-02-25 12:37:42 -07:00
|
|
|
'9290012607': [
|
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.sensor_illuminance, cfg.sensor_illuminance_lux,
|
|
|
|
cfg.sensor_battery,
|
|
|
|
],
|
2019-10-03 10:03:36 -07:00
|
|
|
'GL-C-008': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'GL-C-009': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'STSS-MULT-001': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'E11-G23/E11-G33': [cfg.light_brightness],
|
|
|
|
'E1ACA4ABE38A': [cfg.light_brightness],
|
2020-01-03 14:28:21 -07:00
|
|
|
'AC03645': [cfg.light_brightness_colortemp_colorhs],
|
2019-09-22 11:02:46 -07:00
|
|
|
'AC03641': [cfg.light_brightness],
|
|
|
|
'AC03648': [cfg.light_brightness_colortemp],
|
|
|
|
'FB56+ZSW05HG1.2': [cfg.switch],
|
|
|
|
'72922-A': [cfg.switch],
|
|
|
|
'AC03642': [cfg.light_brightness_colortemp],
|
|
|
|
'AC08560': [cfg.light_brightness],
|
2020-01-26 11:39:43 -07:00
|
|
|
'AC10786-DIM': [cfg.light_brightness],
|
2018-08-04 11:05:34 -07:00
|
|
|
'DNCKATSW002': [switchWithPostfix('left'), switchWithPostfix('right')],
|
|
|
|
'DNCKATSW003': [switchWithPostfix('left'), switchWithPostfix('right'), switchWithPostfix('center')],
|
|
|
|
'DNCKATSW004': [
|
|
|
|
switchWithPostfix('bottom_left'), switchWithPostfix('bottom_right'),
|
|
|
|
switchWithPostfix('top_left'), switchWithPostfix('top_right'),
|
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'BY 165': [cfg.light_brightness],
|
|
|
|
'ZLED-2709': [cfg.light_brightness],
|
|
|
|
'8718696548738': [cfg.light_brightness_colortemp],
|
|
|
|
'915005587401': [cfg.light_brightness_colortemp],
|
2020-02-23 05:33:30 -07:00
|
|
|
'3435011P7': [cfg.light_brightness_colortemp],
|
2019-09-22 11:02:46 -07:00
|
|
|
'4052899926110': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'Z01-CIA19NAE26': [cfg.light_brightness],
|
|
|
|
'E11-N1EA': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-29 13:21:22 -07:00
|
|
|
'E11-U2E': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'74283': [cfg.light_brightness],
|
2019-11-03 13:23:41 -07:00
|
|
|
'JTQJ-BF-01LM/BW': [cfg.binary_sensor_gas, cfg.sensor_gas_density, cfg.sensor_sensitivity],
|
2019-09-22 11:02:46 -07:00
|
|
|
'50043': [cfg.switch],
|
2020-01-06 13:55:43 -07:00
|
|
|
'50044/50045': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'AV2010/22': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
2019-10-25 11:10:14 -07:00
|
|
|
'3210-L': [cfg.switch, cfg.sensor_power, cfg.sensor_current, cfg.sensor_voltage],
|
2019-10-16 10:44:44 -07:00
|
|
|
'3320-L': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery],
|
2019-10-20 02:04:23 -07:00
|
|
|
'3326-L': [cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'7299355PH': [cfg.light_brightness_colorxy],
|
|
|
|
'45857GE': [cfg.light_brightness],
|
|
|
|
'A6121': [cfg.sensor_lock],
|
|
|
|
'433714': [cfg.light_brightness],
|
|
|
|
'3261030P7': [cfg.light_brightness_colortemp],
|
|
|
|
'3216431P5': [cfg.light_brightness_colortemp],
|
2020-01-25 12:00:22 -07:00
|
|
|
'DJT11LM': [cfg.sensor_action, cfg.sensor_battery, cfg.sensor_sensitivity, cfg.sensor_strength],
|
2019-09-22 11:02:46 -07:00
|
|
|
'E1603/E1702': [cfg.switch],
|
|
|
|
'7199960PH': [cfg.light_brightness_colorxy],
|
|
|
|
'74696': [cfg.light_brightness],
|
|
|
|
'AB35996': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'AB401130055': [cfg.light_brightness_colortemp],
|
|
|
|
'74282': [cfg.light_brightness_colortemp],
|
|
|
|
'RS 128 T': [cfg.light_brightness_colortemp],
|
|
|
|
'53170161': [cfg.light_brightness_colortemp],
|
|
|
|
'4058075036147': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'KS-SM001': [cfg.switch],
|
2018-10-25 11:43:31 -07:00
|
|
|
'MG-AUWS01': [switchWithPostfix('left'), switchWithPostfix('right')],
|
2019-09-22 11:02:46 -07:00
|
|
|
'9290002579A': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'4256251-RZHAC': [cfg.switch, cfg.sensor_power],
|
2019-10-25 11:10:14 -07:00
|
|
|
'4257050-ZHAC': [cfg.light_brightness, cfg.sensor_power, cfg.sensor_current, cfg.sensor_voltage],
|
2019-09-22 11:02:46 -07:00
|
|
|
'STS-PRS-251': [cfg.binary_sensor_presence, cfg.sensor_battery],
|
|
|
|
'4058075816794': [cfg.light_brightness_colortemp],
|
|
|
|
'4052899926158': [cfg.light_brightness],
|
|
|
|
'4058075036185': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-30 10:02:25 -07:00
|
|
|
'50049': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'915005733701': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'RB 285 C': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'3216331P5': [cfg.light_brightness_colortemp],
|
2020-02-08 15:41:22 -07:00
|
|
|
'AC08562': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'900008-WW': [cfg.light_brightness],
|
|
|
|
'Mega23M12': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'PSS-23ZBS': [cfg.switch],
|
2019-12-15 08:37:00 -07:00
|
|
|
'HS1SA-M': [cfg.binary_sensor_smoke, cfg.binary_sensor_battery_low],
|
2019-09-22 11:02:46 -07:00
|
|
|
'Z01-A19NAE26': [cfg.light_brightness_colortemp],
|
|
|
|
'Z01-A60EAE27': [cfg.light_brightness_colortemp],
|
2020-01-03 14:28:21 -07:00
|
|
|
'AC01353010G': [
|
|
|
|
cfg.binary_sensor_occupancy, cfg.binary_sensor_tamper,
|
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_battery_low,
|
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'SP 120': [cfg.switch, cfg.sensor_power],
|
2019-10-30 08:32:55 -07:00
|
|
|
'SP 222': [cfg.switch],
|
2019-09-22 11:02:46 -07:00
|
|
|
'RB 248 T': [cfg.light_brightness_colortemp],
|
|
|
|
'HS3SA': [cfg.binary_sensor_smoke, cfg.binary_sensor_battery_low],
|
|
|
|
'HS1DS/HS3DS': [cfg.binary_sensor_contact],
|
|
|
|
'HS1WL/HS3WL': [cfg.binary_sensor_water_leak],
|
|
|
|
'HS1-WL-E': [cfg.binary_sensor_water_leak],
|
|
|
|
'421786': [cfg.light_brightness],
|
|
|
|
'ICZB-IW11D': [cfg.light_brightness],
|
|
|
|
'3321-S': [cfg.binary_sensor_contact, cfg.sensor_temperature],
|
2020-01-03 01:04:21 -07:00
|
|
|
'ZPIR-8000': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'ZCTS-808': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'ZNLDP12LM': [cfg.light_brightness_colortemp],
|
|
|
|
'D1821': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'ZNCLDJ11LM': [cfg.cover_position, cfg.sensor_cover],
|
|
|
|
'LTFY004': [cfg.light_brightness_colorxy],
|
2019-12-27 07:56:24 -07:00
|
|
|
'GL-S-007Z': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'3325-S': [cfg.sensor_temperature, cfg.binary_sensor_occupancy],
|
|
|
|
'4713407': [cfg.light_brightness],
|
|
|
|
'464800': [cfg.light_brightness_colortemp],
|
|
|
|
'3261331P7': [cfg.light_brightness_colortemp],
|
|
|
|
'4033930P7': [cfg.light_brightness_colortemp],
|
2019-12-23 12:08:43 -07:00
|
|
|
'4023330P7': [cfg.light_brightness_colortemp],
|
2019-09-22 11:02:46 -07:00
|
|
|
'GL-B-008Z': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'AV2010/25': [cfg.switch, cfg.sensor_power],
|
|
|
|
'E12-N14': [cfg.light_brightness],
|
2019-10-17 09:31:42 -07:00
|
|
|
'1TST-EU': [cfg.thermostat(), cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'RB 178 T': [cfg.light_brightness_colortemp],
|
|
|
|
'45856GE': [cfg.switch],
|
|
|
|
'GL-D-003Z': [cfg.light_brightness_colortemp_colorxy],
|
2019-10-03 10:03:36 -07:00
|
|
|
'GL-D-005Z': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'GD-CZ-006': [cfg.light_brightness],
|
2019-01-06 07:31:08 -07:00
|
|
|
'AIRAM-CTR.U': [],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HGZB-20-DE': [cfg.switch],
|
|
|
|
'D1531': [cfg.light_brightness],
|
|
|
|
'D1532': [cfg.light_brightness],
|
2019-12-23 11:56:55 -07:00
|
|
|
'D1533': [cfg.light_brightness],
|
2020-03-01 08:03:08 -07:00
|
|
|
'AV2010/32': [cfg.thermostat(7, 30, 'occupied_heating_setpoint', 0.5), cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HGZB-07A': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'E1524/E1810': [cfg.sensor_action, cfg.sensor_battery],
|
2019-10-03 10:03:36 -07:00
|
|
|
'GL-C-006': [cfg.light_brightness_colortemp],
|
|
|
|
'GL-C-007': [cfg.light_brightness_colorxy_white],
|
2020-02-17 12:15:57 -07:00
|
|
|
'GL-C-007S': [cfg.light_brightness_colorxy_white],
|
2020-01-08 12:06:01 -07:00
|
|
|
'GL-C-007/GL-C-008': [cfg.light_brightness_colortemp_colorxy_white],
|
2019-09-22 11:02:46 -07:00
|
|
|
'100.424.11': [cfg.light_brightness_colortemp],
|
2019-11-23 12:19:38 -07:00
|
|
|
'AC0251100NJ/AC0251700NJ': [cfg.sensor_action, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'71831': [cfg.light_brightness_colortemp],
|
|
|
|
'404000/404005/404012': [cfg.light_brightness_colortemp_colorxy],
|
2019-12-08 06:11:27 -07:00
|
|
|
'44435': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'404006/404008/404004': [cfg.light_brightness_colortemp],
|
|
|
|
'MLI-404011': [cfg.sensor_action],
|
2019-10-03 10:03:36 -07:00
|
|
|
'GL-S-003Z': [cfg.light_brightness_colorxy_white],
|
2019-12-15 07:07:31 -07:00
|
|
|
'GL-S-005Z': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HS1DS-E': [cfg.binary_sensor_contact],
|
|
|
|
'SP600': [cfg.switch, cfg.sensor_power],
|
|
|
|
'1613V': [cfg.switch, cfg.sensor_power],
|
|
|
|
'XVV-Mega23M12': [cfg.light_brightness_colortemp],
|
|
|
|
'GL-B-007Z': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'81809': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'4090130P7': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'100.110.39': [cfg.light_brightness_colortemp_colorxy],
|
2019-02-02 12:31:55 -07:00
|
|
|
'TI0001': [switchWithPostfix('left'), switchWithPostfix('right')],
|
2019-12-13 11:00:02 -07:00
|
|
|
'SPZB0001': [cfg.thermostat(5, 30, 'current_heating_setpoint', 0.5), cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HS3CG': [cfg.binary_sensor_gas],
|
|
|
|
'81825': [cfg.sensor_action],
|
|
|
|
'Z809AF': [cfg.switch, cfg.sensor_power],
|
2019-02-06 15:05:59 -07:00
|
|
|
'RADON TriTech ZB': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-02-06 15:05:59 -07:00
|
|
|
],
|
2020-01-03 15:29:28 -07:00
|
|
|
'07005B': [cfg.light_brightness],
|
|
|
|
'07004D': [cfg.light_brightness_colortemp_colorxy],
|
2019-02-10 12:35:26 -07:00
|
|
|
'E1746': [],
|
2019-09-23 14:57:41 -07:00
|
|
|
'LED1836G9': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'YRD426NRSC': [cfg.lock, cfg.sensor_battery],
|
2020-03-26 14:24:22 -07:00
|
|
|
'YRD246HA20BP': [cfg.lock, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'E1743': [cfg.sensor_click, cfg.sensor_battery],
|
|
|
|
'LED1732G11': [cfg.light_brightness_colortemp],
|
|
|
|
'LED1736G9': [cfg.light_brightness_colortemp],
|
|
|
|
'RB 265': [cfg.light_brightness],
|
2019-02-23 08:02:45 -07:00
|
|
|
'9290019758': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
2020-02-25 12:37:42 -07:00
|
|
|
cfg.sensor_illuminance, cfg.sensor_illuminance_lux, cfg.sensor_battery,
|
2019-02-23 08:02:45 -07:00
|
|
|
],
|
2019-03-08 09:39:15 -07:00
|
|
|
'HGZB-042': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
2019-07-01 07:48:54 -07:00
|
|
|
'HGZB-42': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
2019-09-22 11:02:46 -07:00
|
|
|
'GL-FL-004TZ': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'IM6001-OTP05': [cfg.switch],
|
2019-02-23 08:02:45 -07:00
|
|
|
'SV01': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.cover_position, cfg.sensor_temperature, cfg.sensor_pressure,
|
|
|
|
cfg.sensor_battery,
|
2019-02-23 08:02:45 -07:00
|
|
|
],
|
2019-07-01 07:48:54 -07:00
|
|
|
'SV02': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.cover_position, cfg.sensor_temperature, cfg.sensor_pressure,
|
|
|
|
cfg.sensor_battery,
|
2019-07-01 07:48:54 -07:00
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'316GLEDRF': [cfg.light_brightness],
|
|
|
|
'LVS-ZB500D': [cfg.light_brightness],
|
2019-02-23 08:02:45 -07:00
|
|
|
'ST218': [],
|
2020-01-03 15:29:28 -07:00
|
|
|
'E1525/E1745': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'ZYCT-202': [cfg.sensor_action],
|
|
|
|
'GR-ZB01-W': [cfg.cover_position],
|
|
|
|
'4090531P7': [cfg.light_brightness_colortemp_colorxy],
|
2019-12-03 12:11:45 -07:00
|
|
|
'HGZB-42-UK / HGZB-41 / HGZB-41-UK': [cfg.switch],
|
2019-03-03 10:37:46 -07:00
|
|
|
'ISW-ZPR1-WP13': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-03-03 10:37:46 -07:00
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'9290018195': [cfg.light_brightness],
|
2019-10-30 11:44:02 -07:00
|
|
|
'HGZB-04D / HGZB-4D-UK': [cfg.light_brightness],
|
2019-03-08 09:39:15 -07:00
|
|
|
'HGZB-043': [switchWithPostfix('top'), switchWithPostfix('bottom'), switchWithPostfix('center')],
|
2019-03-09 09:04:41 -07:00
|
|
|
'NCZ-3043-HA': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-03-09 09:04:41 -07:00
|
|
|
],
|
2019-05-24 09:32:37 -07:00
|
|
|
'NCZ-3041-HA': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-05-24 09:32:37 -07:00
|
|
|
],
|
|
|
|
'NCZ-3045-HA': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-05-24 09:32:37 -07:00
|
|
|
],
|
2019-03-09 09:04:41 -07:00
|
|
|
'STS-IRM-250': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-03-09 09:04:41 -07:00
|
|
|
],
|
|
|
|
'3305-S': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_occupancy, cfg.sensor_temperature,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-03-09 09:04:41 -07:00
|
|
|
],
|
|
|
|
'3300-S': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_contact,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
2019-03-09 09:04:41 -07:00
|
|
|
],
|
2020-02-22 11:03:06 -07:00
|
|
|
'IM6001-BTP01': [cfg.sensor_click, cfg.sensor_temperature, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'AV2010/34': [cfg.sensor_click],
|
2019-07-11 10:36:50 -07:00
|
|
|
'PP-WHT-US': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.switch, cfg.sensor_power,
|
|
|
|
cfg.sensor_current, cfg.sensor_voltage,
|
2019-07-11 10:36:50 -07:00
|
|
|
],
|
2019-03-13 11:41:58 -07:00
|
|
|
'CR701-YZ': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_battery_low, cfg.binary_sensor_carbon_monoxide,
|
|
|
|
cfg.binary_sensor_gas,
|
2019-03-13 11:41:58 -07:00
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HGZB-1S': [cfg.switch, cfg.sensor_click],
|
|
|
|
'HGZB-045': [cfg.switch, cfg.sensor_click],
|
2019-03-13 11:41:58 -07:00
|
|
|
'HGZB-43': [switchWithPostfix('top'), switchWithPostfix('bottom'), switchWithPostfix('center')],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HGZB-01A': [cfg.switch],
|
|
|
|
'HGZB-02A': [cfg.light_brightness],
|
|
|
|
'MCT-350 SMA': [cfg.binary_sensor_contact],
|
2020-03-26 13:28:27 -07:00
|
|
|
'3310-S': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
2019-08-06 12:06:26 -07:00
|
|
|
'IM6001-WLP01': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_water_leak,
|
|
|
|
cfg.sensor_battery,
|
2019-08-06 12:06:26 -07:00
|
|
|
],
|
2020-03-06 15:34:36 -07:00
|
|
|
'WTR-UK-V2': [
|
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_water_leak,
|
|
|
|
cfg.sensor_battery,
|
|
|
|
],
|
2019-03-15 13:58:49 -07:00
|
|
|
'3315-S': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_water_leak,
|
|
|
|
cfg.sensor_battery,
|
2019-03-15 13:58:49 -07:00
|
|
|
],
|
|
|
|
'F-MLT-US-2': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_contact,
|
|
|
|
cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
|
|
|
],
|
|
|
|
'SWO-KEF1PA': [cfg.sensor_action],
|
|
|
|
'HGZB-02S': [cfg.sensor_click, cfg.switch],
|
|
|
|
'HGZB-41': [cfg.switch],
|
|
|
|
'ZG9101SAC-HP': [cfg.light_brightness],
|
|
|
|
'RS 122': [cfg.light_brightness],
|
|
|
|
'GL-B-001Z': [cfg.light_brightness_colortemp_colorxy],
|
2019-10-03 10:03:36 -07:00
|
|
|
'IM6001-MTP01': [cfg.sensor_temperature, cfg.sensor_battery, cfg.binary_sensor_occupancy],
|
2019-03-21 12:34:54 -07:00
|
|
|
'U86K31ND6': [switchWithPostfix('left'), switchWithPostfix('right'), switchWithPostfix('center')],
|
2019-09-22 11:02:46 -07:00
|
|
|
'HLD812-Z-SC': [cfg.light_brightness],
|
|
|
|
'HLC610-Z': [cfg.light_brightness],
|
|
|
|
'BY 285 C': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'HS1RC-M': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'SWO-WDS1PA': [cfg.binary_sensor_contact],
|
2020-01-08 09:57:40 -07:00
|
|
|
'LLKZMK11LM': [
|
|
|
|
switchWithPostfix('l1'), switchWithPostfix('l2'),
|
|
|
|
cfg.sensor_power, cfg.sensor_temperature, cfg.sensor_consumption,
|
|
|
|
],
|
2020-02-26 09:30:38 -07:00
|
|
|
'T18W3Z': [switchWithPostfix('l1'), switchWithPostfix('l2'), switchWithPostfix('l3')],
|
2019-09-22 11:02:46 -07:00
|
|
|
'LVS-SM10ZW': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low],
|
|
|
|
'HS2SK': [cfg.switch, cfg.sensor_power],
|
|
|
|
'45853GE': [cfg.switch, cfg.sensor_power],
|
|
|
|
'50064': [cfg.light_brightness_colortemp],
|
|
|
|
'9290011998B': [cfg.light_brightness_colortemp],
|
|
|
|
'9290022167': [cfg.light_brightness_colortemp],
|
|
|
|
'4096730U7': [cfg.light_brightness_colortemp],
|
2020-01-06 13:55:43 -07:00
|
|
|
'RB 278 T': [cfg.light_brightness_colortemp],
|
2019-04-07 06:38:27 -07:00
|
|
|
'3315-G': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_temperature, cfg.sensor_battery, cfg.binary_sensor_water_leak,
|
|
|
|
],
|
|
|
|
'N2G-SP': [cfg.sensor_power, cfg.switch],
|
|
|
|
'AC0363900NJ': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'LXZB-02A': [cfg.light_brightness],
|
|
|
|
'GL-S-004Z': [cfg.light_brightness_colortemp],
|
|
|
|
'SCM-5ZBS': [cfg.cover_position],
|
|
|
|
'YRD226HA2619': [cfg.sensor_battery, cfg.lock],
|
2019-10-25 11:43:38 -07:00
|
|
|
'YMF40': [cfg.lock, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'V3-BTZB': [cfg.lock],
|
|
|
|
'3RSS008Z': [cfg.switch, cfg.sensor_battery],
|
2020-03-09 10:59:48 -07:00
|
|
|
'3RSS007Z': [cfg.switch],
|
2019-09-22 11:02:46 -07:00
|
|
|
'99432': [cfg.fan, cfg.light_brightness],
|
|
|
|
'511.10': [cfg.light_brightness],
|
2019-04-26 12:57:38 -07:00
|
|
|
'IM6001-MPP01': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_contact, cfg.sensor_battery,
|
|
|
|
],
|
|
|
|
'HLC821-Z-SC': [cfg.light_brightness],
|
|
|
|
'RS 228 T': [cfg.light_brightness_colortemp],
|
|
|
|
'67200BL': [cfg.switch],
|
2020-03-23 11:42:06 -07:00
|
|
|
'InstaRemote': [cfg.sensor_action],
|
2019-09-22 11:02:46 -07:00
|
|
|
'100.425.90': [cfg.switch],
|
|
|
|
'74580': [cfg.light_brightness],
|
2019-06-11 11:07:32 -07:00
|
|
|
'HS1CA-E': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.binary_sensor_carbon_monoxide, cfg.binary_sensor_battery_low,
|
|
|
|
cfg.sensor_battery,
|
|
|
|
],
|
2019-10-19 01:32:39 -07:00
|
|
|
'MCT-340 E': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery],
|
|
|
|
'MCT-340 SMA': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'D1542': [cfg.light_brightness_colortemp],
|
|
|
|
'ZGRC-KEY-013': [cfg.sensor_click],
|
|
|
|
'ZigUP': [cfg.switch],
|
|
|
|
'YRD256HA20BP': [cfg.sensor_battery, cfg.lock],
|
|
|
|
'SZ-ESW01-AU': [cfg.sensor_power, cfg.switch],
|
|
|
|
'PSM-29ZBSR': [cfg.switch],
|
|
|
|
'ZM350STW1TCF': [cfg.light_brightness_colortemp],
|
|
|
|
'M350STW1': [cfg.light_brightness],
|
|
|
|
'A806S-Q1R': [cfg.light_brightness],
|
|
|
|
'XY12S-15': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'B07KG5KF5R': [cfg.light_brightness_colortemp],
|
|
|
|
'SCM-S1': [cfg.cover_position],
|
|
|
|
'HEIMAN-M1': [cfg.binary_sensor_contact],
|
|
|
|
'3216131P5': [cfg.light_brightness_colortemp],
|
|
|
|
'ST8AU-CON': [cfg.light_brightness],
|
|
|
|
'HS3MS': [cfg.binary_sensor_occupancy],
|
2019-05-29 10:33:15 -07:00
|
|
|
'DIYRUZ_R4_5': [
|
|
|
|
switchWithPostfix('bottom_left'), switchWithPostfix('bottom_right'), switchWithPostfix('center'),
|
|
|
|
switchWithPostfix('top_left'), switchWithPostfix('top_right'),
|
|
|
|
],
|
2020-04-01 12:42:48 -07:00
|
|
|
'NCZ-3011-HA': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
2019-09-22 11:02:46 -07:00
|
|
|
'MEAZON_BIZY_PLUG': [cfg.sensor_power, cfg.switch, cfg.sensor_temperature],
|
|
|
|
'MEAZON_DINRAIL': [cfg.sensor_power, cfg.switch, cfg.sensor_temperature],
|
|
|
|
'HS1CA-M': [cfg.binary_sensor_carbon_monoxide, cfg.binary_sensor_battery_low],
|
|
|
|
'7099860PH': [cfg.light_brightness_colorxy],
|
|
|
|
'HV-GSCXZB269': [cfg.light_brightness_colortemp],
|
|
|
|
'3216231P5': [cfg.light_brightness_colortemp],
|
2020-01-03 14:28:21 -07:00
|
|
|
'AC03647': [cfg.light_brightness_colortemp_colorhs],
|
2019-09-22 11:02:46 -07:00
|
|
|
'12031': [cfg.cover_position],
|
2020-01-26 11:44:44 -07:00
|
|
|
'LS12128': [cfg.cover_position],
|
2019-09-22 11:02:46 -07:00
|
|
|
'421792': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'HGZB-06A': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'LED1733G7': [cfg.light_brightness_colortemp],
|
|
|
|
'9290011370B': [cfg.light_brightness],
|
|
|
|
'RB 250 C': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'8718696170625': [cfg.light_brightness],
|
|
|
|
'GL-G-001Z': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'HV-GSCXZB279_HV-GSCXZB229': [cfg.light_brightness_colortemp],
|
|
|
|
'HS2WD-E': [cfg.sensor_battery],
|
2019-07-08 12:42:07 -07:00
|
|
|
'ZNMS12LM': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_action, cfg.binary_sensor_lock, cfg.binary_sensor_lock_reverse,
|
2019-07-08 12:42:07 -07:00
|
|
|
],
|
2019-08-16 08:40:47 -07:00
|
|
|
'ZNMS13LM': [
|
2019-09-22 11:02:46 -07:00
|
|
|
cfg.sensor_action, cfg.binary_sensor_lock, cfg.binary_sensor_lock_reverse,
|
2019-08-16 08:40:47 -07:00
|
|
|
],
|
2020-02-18 14:07:34 -07:00
|
|
|
'ZNMS11LM': [
|
|
|
|
cfg.sensor_action, cfg.binary_sensor_lock, cfg.binary_sensor_lock_reverse,
|
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'12050': [cfg.switch, cfg.sensor_power],
|
|
|
|
'ROB_200-004-0': [cfg.light_brightness],
|
2019-12-11 11:41:06 -07:00
|
|
|
'4512700': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'RH3040': [cfg.sensor_battery, cfg.binary_sensor_occupancy],
|
|
|
|
'DZ4743-00B': [cfg.switch],
|
|
|
|
'GLSK3ZB-1711': [cfg.switch],
|
2019-07-27 08:33:33 -07:00
|
|
|
'GLSK3ZB-1712': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
|
|
|
'GLSK3ZB-1713': [switchWithPostfix('top'), switchWithPostfix('center'), switchWithPostfix('bottom')],
|
|
|
|
'GLSK6ZB-1714': [
|
|
|
|
switchWithPostfix('top_left'), switchWithPostfix('bottom_left'),
|
|
|
|
switchWithPostfix('top_right'), switchWithPostfix('bottom_right'),
|
|
|
|
],
|
|
|
|
'GLSK6ZB-1715': [
|
|
|
|
switchWithPostfix('top_left'), switchWithPostfix('center_left'), switchWithPostfix('bottom_left'),
|
|
|
|
switchWithPostfix('top_right'), switchWithPostfix('bottom_right'),
|
|
|
|
],
|
|
|
|
'GLSK6ZB-1716': [
|
|
|
|
switchWithPostfix('top_left'), switchWithPostfix('center_left'), switchWithPostfix('bottom_left'),
|
|
|
|
switchWithPostfix('top_right'), switchWithPostfix('center_right'), switchWithPostfix('bottom_right'),
|
|
|
|
],
|
2019-09-22 11:02:46 -07:00
|
|
|
'3306431P7': [cfg.light_brightness_colortemp],
|
2020-02-18 14:05:32 -07:00
|
|
|
'AC08559': [cfg.light_brightness_colortemp_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'LVS-ZB15S': [cfg.switch],
|
|
|
|
'LZL4BWHL01': [cfg.sensor_action],
|
|
|
|
'2AJZ4KPKEY': [cfg.sensor_click, cfg.sensor_battery],
|
|
|
|
'2AJZ4KPFT': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
|
|
|
'TT001ZAV20': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
2020-03-13 11:24:20 -07:00
|
|
|
'TS0002': [switchWithPostfix('l1'), switchWithPostfix('l2')],
|
2019-09-22 11:02:46 -07:00
|
|
|
'LVS-SN10ZW': [cfg.sensor_battery, cfg.binary_sensor_occupancy],
|
|
|
|
'LVS-ZB15R': [cfg.switch],
|
2020-01-16 13:08:14 -07:00
|
|
|
'TH1123ZB': [
|
|
|
|
cfg.thermostat(7, 30, 'occupied_heating_setpoint', 1.0), cfg.sensor_local_temperature,
|
|
|
|
cfg.lock_keypad_lockout, cfg.sensor_power,
|
|
|
|
],
|
2019-11-20 12:08:30 -07:00
|
|
|
'TH1124ZB': [cfg.thermostat()],
|
2020-01-09 13:56:03 -07:00
|
|
|
'TH1400ZB': [cfg.thermostat()],
|
|
|
|
'TH1500ZB': [cfg.thermostat()],
|
2019-10-17 09:31:42 -07:00
|
|
|
'Zen-01-W': [cfg.thermostat()],
|
2019-09-22 11:02:46 -07:00
|
|
|
'9290022166': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'PM-C140-ZB': [cfg.sensor_power, cfg.switch],
|
2020-01-11 08:20:45 -07:00
|
|
|
'PM-B530-ZB': [cfg.sensor_power, cfg.switch],
|
2020-01-16 13:17:55 -07:00
|
|
|
'PM-B430-ZB': [cfg.sensor_power, cfg.switch],
|
2019-08-03 11:20:04 -07:00
|
|
|
'ptvo.switch': [
|
|
|
|
switchWithPostfix('bottom_left'), switchWithPostfix('bottom_right'), switchWithPostfix('top_left'),
|
2019-10-09 09:08:14 -07:00
|
|
|
switchWithPostfix('top_right'), switchWithPostfix('center'), cfg.sensor_click,
|
2019-08-03 11:20:04 -07:00
|
|
|
],
|
|
|
|
'DIYRuZ_R4_5': [
|
|
|
|
switchWithPostfix('bottom_left'), switchWithPostfix('bottom_right'), switchWithPostfix('top_left'),
|
|
|
|
switchWithPostfix('top_right'), switchWithPostfix('center'),
|
|
|
|
],
|
|
|
|
'DIYRuZ_KEYPAD20': [],
|
|
|
|
'DTB190502A1': [],
|
2019-11-21 12:26:10 -07:00
|
|
|
'FL 130 C': [cfg.light_brightness_colortemp_colorxy],
|
2019-10-20 02:00:32 -07:00
|
|
|
'BF 263': [cfg.light_brightness],
|
2019-09-22 11:02:46 -07:00
|
|
|
'RF 263': [cfg.light_brightness],
|
|
|
|
'HS1CG-M': [cfg.binary_sensor_gas],
|
2019-09-23 14:57:41 -07:00
|
|
|
'HS1CG_M': [cfg.binary_sensor_gas],
|
2019-09-22 11:02:46 -07:00
|
|
|
'LVS-SN10ZW_SN11': [cfg.sensor_battery, cfg.binary_sensor_occupancy],
|
|
|
|
'B00TN589ZG': [cfg.light_brightness],
|
|
|
|
'PSB19-SW27': [cfg.light_brightness],
|
2020-01-15 04:58:03 -07:00
|
|
|
'S1': [cfg.switch, cfg.sensor_power],
|
|
|
|
'S2': [switchWithPostfix('l1'), switchWithPostfix('l2'), cfg.sensor_power],
|
2019-10-04 10:12:49 -07:00
|
|
|
'ZWallRemote0': [cfg.sensor_click],
|
2020-01-15 04:58:03 -07:00
|
|
|
'D1': [cfg.light_brightness, cfg.sensor_power],
|
|
|
|
'J1': [cfg.cover_position_tilt, cfg.sensor_power],
|
2019-09-22 11:02:46 -07:00
|
|
|
'73741': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'ZA806SQ1TCF': [cfg.light_brightness_colortemp],
|
|
|
|
'RF 265': [cfg.light_brightness],
|
|
|
|
'ZNCZ03LM': [cfg.switch, cfg.sensor_power],
|
|
|
|
'17436/30/P7': [cfg.light_brightness],
|
2020-01-27 13:48:04 -07:00
|
|
|
'17435/30/P7': [cfg.light_brightness_colorxy],
|
2019-09-22 11:02:46 -07:00
|
|
|
'9290018187B': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'1741830P7': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'Z3-1BRL': [cfg.sensor_action, cfg.sensor_brightness],
|
2020-03-29 11:19:13 -07:00
|
|
|
'HS1CG-E': [cfg.binary_sensor_gas],
|
2019-09-22 11:02:46 -07:00
|
|
|
'LED1842G3': [cfg.light_brightness],
|
|
|
|
'SR-ZG9001K4-DIM2': [cfg.sensor_battery, cfg.sensor_click],
|
|
|
|
'ICZB-IW11SW': [cfg.switch],
|
|
|
|
'HV-GUCXZB5': [cfg.light_brightness_colortemp],
|
|
|
|
'HGZB-20A': [cfg.switch],
|
|
|
|
'SZ-ESW01': [cfg.switch, cfg.sensor_power],
|
|
|
|
'LXZB-12A': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'2AJZ4KPBS': [cfg.sensor_battery, cfg.binary_sensor_occupancy, cfg.binary_sensor_battery_low],
|
|
|
|
'2AJZ4KPDR': [cfg.sensor_battery, cfg.binary_sensor_contact, cfg.binary_sensor_battery_low],
|
2019-09-22 12:29:38 -07:00
|
|
|
'6717-84': [cfg.switch],
|
2020-02-23 12:26:13 -07:00
|
|
|
'ICZB-KPD18S': [cfg.sensor_battery, cfg.sensor_click, cfg.sensor_action],
|
2020-02-28 15:27:12 -07:00
|
|
|
'8195-55': [cfg.light_brightness_colortemp],
|
2019-09-28 09:11:02 -07:00
|
|
|
'E1757': [cfg.cover_position, cfg.sensor_battery],
|
|
|
|
'E1926': [cfg.cover_position, cfg.sensor_battery],
|
2019-09-28 04:48:25 -07:00
|
|
|
'LWG004': [cfg.light_brightness],
|
2019-10-01 12:11:44 -07:00
|
|
|
'54668161': [cfg.light_brightness_colortemp],
|
|
|
|
'8718699688820': [cfg.light_brightness],
|
2019-10-02 13:01:29 -07:00
|
|
|
'GL-W-001Z': [cfg.switch],
|
|
|
|
'E1766': [cfg.sensor_click, cfg.sensor_battery],
|
2019-10-03 10:03:36 -07:00
|
|
|
'929001953101': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'8718699673147': [cfg.light_brightness],
|
|
|
|
'3300-P': [cfg.sensor_temperature, cfg.binary_sensor_contact, cfg.sensor_battery],
|
2019-10-04 10:12:49 -07:00
|
|
|
'GL-B-008ZS': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-03 01:09:28 -07:00
|
|
|
'T1828': [cfg.light_brightness_colortemp],
|
2019-10-04 10:12:49 -07:00
|
|
|
'T1829': [cfg.light_brightness_colortemp],
|
2019-10-07 10:34:10 -07:00
|
|
|
'929002240401': [cfg.switch],
|
|
|
|
'HGZB-20-UK': [cfg.switch],
|
2019-10-09 09:08:14 -07:00
|
|
|
'PTAPT-WH02': [cfg.switch],
|
|
|
|
'929001953301': [cfg.light_brightness_colortemp],
|
|
|
|
'DIYRuZ_magnet': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'ZLED-TUNE9': [cfg.light_brightness_colortemp],
|
2019-10-19 01:32:39 -07:00
|
|
|
'XHS2-SE': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery],
|
2019-10-09 09:08:14 -07:00
|
|
|
'4000116784070': [cfg.switch],
|
2019-10-14 09:56:41 -07:00
|
|
|
'9290020399': [cfg.light_brightness],
|
|
|
|
'929002241201': [cfg.light_brightness],
|
|
|
|
'YRD210-HA-605': [cfg.lock, cfg.sensor_battery],
|
2019-12-12 12:02:41 -07:00
|
|
|
'YRD220/240 TSDB': [cfg.lock, cfg.sensor_battery],
|
2020-03-28 11:30:27 -07:00
|
|
|
'ZM-CSW032-D': [cfg.cover_position],
|
2019-10-16 10:44:44 -07:00
|
|
|
'LH-32ZB': [cfg.sensor_humidity, cfg.sensor_temperature, cfg.sensor_battery],
|
|
|
|
'511.201': [cfg.light_brightness],
|
2019-10-17 10:42:40 -07:00
|
|
|
'ZNCLDJ12LM': [cfg.cover_position],
|
|
|
|
'046677552343': [cfg.switch],
|
2019-10-20 13:52:00 -07:00
|
|
|
'3115331PH': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-03 01:04:21 -07:00
|
|
|
'ZWLD-100': [cfg.binary_sensor_water_leak, cfg.binary_sensor_battery_low, cfg.sensor_battery],
|
2019-10-21 11:35:58 -07:00
|
|
|
'GL-MC-001': [cfg.light_brightness_colortemp_colorxy],
|
2019-10-25 11:43:38 -07:00
|
|
|
'YRD226/246 TSDB': [cfg.lock, cfg.sensor_battery],
|
|
|
|
'T1820': [cfg.light_brightness_colortemp],
|
|
|
|
'BASICZBR3': [cfg.switch],
|
2020-01-11 08:17:22 -07:00
|
|
|
'E1744': [cfg.sensor_action, cfg.sensor_battery],
|
2019-10-25 11:43:38 -07:00
|
|
|
'TS0201': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
2019-10-26 09:14:51 -07:00
|
|
|
'LH07321': [cfg.binary_sensor_water_leak, cfg.binary_sensor_battery_low],
|
2019-10-28 10:48:20 -07:00
|
|
|
'GL-C-008S': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'BY 178 T': [cfg.light_brightness_colortemp],
|
2019-10-30 11:44:02 -07:00
|
|
|
'8718699688882': [cfg.light_brightness],
|
|
|
|
'LED1738G7': [cfg.light_brightness_colortemp],
|
2019-11-01 15:55:53 -07:00
|
|
|
'9290022169': [cfg.light_brightness_colortemp],
|
2020-02-25 12:37:42 -07:00
|
|
|
'TERNCY-PP01': [
|
|
|
|
cfg.sensor_temperature, cfg.binary_sensor_occupancy, cfg.sensor_illuminance, cfg.sensor_illuminance_lux,
|
|
|
|
cfg.sensor_click,
|
|
|
|
],
|
2019-11-05 13:14:19 -07:00
|
|
|
'CR11S8UZ': [cfg.sensor_action],
|
2019-11-07 10:28:17 -07:00
|
|
|
'RB 148 T': [cfg.light_brightness_colortemp],
|
2020-01-20 13:36:19 -07:00
|
|
|
'STS-OUT-US-2': [cfg.switch, cfg.sensor_power],
|
2019-12-13 11:18:34 -07:00
|
|
|
'UK7004240': [cfg.thermostat(), cfg.sensor_battery],
|
2019-11-15 14:55:49 -07:00
|
|
|
'S31ZB': [cfg.switch],
|
|
|
|
'SA-003-Zigbee': [cfg.switch],
|
2019-11-14 12:43:20 -07:00
|
|
|
'SZ-DWS04': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery],
|
|
|
|
'ICZB-B1FC60/B3FC64/B2FC95/B2FC125': [cfg.light_brightness_colortemp],
|
2019-11-17 13:22:24 -07:00
|
|
|
'TS0203': [cfg.sensor_battery, cfg.binary_sensor_contact],
|
|
|
|
'TS0204': [cfg.binary_sensor_gas],
|
|
|
|
'TS0205': [cfg.binary_sensor_smoke, cfg.sensor_battery],
|
|
|
|
'TS0111': [cfg.switch],
|
|
|
|
'TS0001': [cfg.switch],
|
|
|
|
'TS0207': [cfg.binary_sensor_water_leak, cfg.sensor_battery],
|
2020-01-03 14:28:21 -07:00
|
|
|
'iL07_1': [cfg.binary_sensor_occupancy, cfg.binary_sensor_tamper, cfg.binary_sensor_battery_low],
|
2019-11-17 13:22:24 -07:00
|
|
|
'S31 Lite zb': [cfg.switch],
|
|
|
|
'LH-992ZB': [cfg.binary_sensor_occupancy, cfg.binary_sensor_battery_low],
|
|
|
|
'548727': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'TS0202': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
|
|
|
'TS0218': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'404021': [cfg.switch],
|
|
|
|
'Eco-Dim.07': [cfg.light_brightness],
|
2020-01-03 15:29:28 -07:00
|
|
|
'DIYRuZ_rspm': [cfg.switch, cfg.sensor_action, cfg.sensor_power, cfg.sensor_current],
|
2019-11-20 12:08:30 -07:00
|
|
|
'ZG9101SAC-HP-Switch': [cfg.switch],
|
2019-11-23 12:19:38 -07:00
|
|
|
'ZNCZ04LM': [cfg.switch, cfg.sensor_power],
|
2020-01-09 14:10:16 -07:00
|
|
|
'ZNCZ12LM': [cfg.switch, cfg.sensor_power],
|
2019-11-27 11:57:25 -07:00
|
|
|
'GL-S-007ZS': [cfg.light_brightness_colortemp_colorxy],
|
2019-12-03 12:11:45 -07:00
|
|
|
'4058075816732': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'GL-B-007ZS': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'GL-G-007Z': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'WXCJKG11LM': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'WXCJKG12LM': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'WXCJKG13LM': [cfg.sensor_action, cfg.sensor_battery],
|
2020-02-01 09:35:20 -07:00
|
|
|
'8718699693985': [cfg.sensor_action, cfg.sensor_battery],
|
2019-12-03 12:11:45 -07:00
|
|
|
'GL-D-004ZS': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'AC10787': [cfg.light_brightness_colortemp],
|
2020-03-06 15:34:36 -07:00
|
|
|
'F-APP-UK-V2': [cfg.switch, cfg.sensor_power],
|
2020-03-02 13:11:54 -07:00
|
|
|
'S9TSZGB_3': [cfg.sensor_action],
|
|
|
|
'S9TSZGB_1': [cfg.sensor_action],
|
2020-03-11 12:11:47 -07:00
|
|
|
'SP-EUC01': [cfg.switch, cfg.sensor_power],
|
2019-12-11 13:54:16 -07:00
|
|
|
'511.012': [cfg.light_brightness],
|
2019-12-15 07:55:10 -07:00
|
|
|
'GL-S-008Z': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'TZSW22FW-L4': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
|
|
|
'GDKES-01TZXD': [cfg.switch],
|
|
|
|
'GDKES-02TZXD': [switchWithPostfix('left'), switchWithPostfix('right')],
|
|
|
|
'GDKES-03TZXD': [switchWithPostfix('left'), switchWithPostfix('center'), switchWithPostfix('right')],
|
2020-01-14 10:47:32 -07:00
|
|
|
'6735/6736/6737': [cfg.switch, cfg.sensor_action],
|
2020-01-15 04:57:08 -07:00
|
|
|
'4034031P7': [cfg.light_brightness_colortemp],
|
2020-01-31 08:27:46 -07:00
|
|
|
'5900131C5': [cfg.light_brightness_colortemp],
|
2019-12-17 11:59:22 -07:00
|
|
|
'SZ-SRN12N': [],
|
|
|
|
'ML-ST-D200': [cfg.light_brightness],
|
|
|
|
'7099930PH': [cfg.light_brightness_colorxy],
|
2019-12-17 13:35:47 -07:00
|
|
|
'9GED18000-009': [cfg.lock, cfg.sensor_battery],
|
|
|
|
'9GED21500-005': [cfg.lock, cfg.sensor_battery],
|
|
|
|
'MP-841': [cfg.binary_sensor_occupancy, cfg.binary_sensor_battery_low],
|
|
|
|
'MCT-370 SMA': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low],
|
2019-12-26 14:46:44 -07:00
|
|
|
'RB 162': [cfg.light_brightness],
|
|
|
|
'SOHM-I1': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low],
|
|
|
|
'SWHM-I1': [cfg.binary_sensor_water_leak, cfg.binary_sensor_battery_low],
|
|
|
|
'SMHM-I1': [cfg.binary_sensor_occupancy, cfg.binary_sensor_battery_low],
|
|
|
|
'SKHMP30-I1': [cfg.switch, cfg.sensor_power],
|
|
|
|
'404028': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'595UGR22': [cfg.light_brightness_colortemp],
|
|
|
|
'6ARCZABZH': [cfg.sensor_battery, cfg.sensor_action],
|
|
|
|
'ZK-EU-2U': [cfg.switch],
|
|
|
|
'511.202': [cfg.switch],
|
|
|
|
'SP 224': [cfg.switch],
|
2020-01-03 15:29:28 -07:00
|
|
|
'9290022411': [cfg.light_brightness],
|
|
|
|
'E1C-NB6': [cfg.switch],
|
|
|
|
'LVS-SC7': [cfg.sensor_action],
|
2020-01-08 12:06:01 -07:00
|
|
|
'1742930P7': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-03 15:29:28 -07:00
|
|
|
'ZM-L03E-Z': [switchWithPostfix('left'), switchWithPostfix('center'), switchWithPostfix('right')],
|
|
|
|
'DL15S-1BZ': [cfg.switch],
|
|
|
|
'E1D-G73WNA': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low],
|
|
|
|
'WV704R0A0902': [cfg.thermostat()],
|
|
|
|
'067776': [cfg.cover_position],
|
|
|
|
'067773': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'067771': [cfg.switch],
|
|
|
|
'064873': [cfg.sensor_action],
|
2020-01-20 13:36:19 -07:00
|
|
|
'K4003C': [cfg.switch],
|
2020-01-06 13:36:45 -07:00
|
|
|
'STZB402': [
|
|
|
|
cfg.thermostat(5, 30, 'occupied_heating_setpoint', 0.5),
|
|
|
|
cfg.sensor_local_temperature,
|
|
|
|
cfg.lock_keypad_lockout,
|
|
|
|
],
|
|
|
|
'SMT402': [
|
|
|
|
cfg.thermostat(5, 30, 'occupied_heating_setpoint', 0.5),
|
|
|
|
cfg.sensor_local_temperature,
|
|
|
|
cfg.lock_keypad_lockout,
|
|
|
|
],
|
2020-01-06 13:55:43 -07:00
|
|
|
'046677551780': [cfg.light_brightness],
|
2020-01-09 14:10:16 -07:00
|
|
|
'798.15': [cfg.light_brightness],
|
2020-01-12 06:31:06 -07:00
|
|
|
'12126': [cfg.switch],
|
2020-01-13 14:09:21 -07:00
|
|
|
'067775': [cfg.switch, cfg.sensor_power],
|
|
|
|
'064888': [cfg.switch],
|
|
|
|
'gq8b1uv': [cfg.light_brightness],
|
2020-02-25 12:37:42 -07:00
|
|
|
'GZCGQ01LM': [cfg.sensor_battery, cfg.sensor_illuminance, cfg.sensor_illuminance_lux],
|
2020-01-13 14:09:21 -07:00
|
|
|
'9290018215': [cfg.light_brightness],
|
|
|
|
'1743230P7': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-22 08:36:14 -07:00
|
|
|
'1744130P7': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-23 13:51:07 -07:00
|
|
|
'1743130P7': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-16 13:27:28 -07:00
|
|
|
'100.110.51': [cfg.light_brightness_colortemp],
|
2020-01-23 11:51:41 -07:00
|
|
|
'ZL1000100-CCT-US-V1A02': [cfg.light_brightness],
|
2020-01-20 09:48:33 -07:00
|
|
|
'HGZB-DLC4-N12B': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-17 14:51:37 -07:00
|
|
|
'U86KCJ-ZP': [cfg.sensor_action],
|
2020-01-20 13:36:19 -07:00
|
|
|
'HS1HT': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
|
|
|
'HS2ESK-E': [cfg.switch, cfg.sensor_power],
|
|
|
|
'B01M7Y8BP9': [cfg.sensor_action],
|
|
|
|
'GP-WOU019BBDWG': [cfg.switch, cfg.sensor_power],
|
|
|
|
'AV2010/21A': [cfg.binary_sensor_battery_low, cfg.binary_sensor_contact, cfg.binary_sensor_tamper],
|
|
|
|
'AL-PIR02': [cfg.binary_sensor_occupancy, cfg.binary_sensor_tamper, cfg.sensor_battery],
|
2020-01-21 13:19:11 -07:00
|
|
|
'MKS-CM-W5': [
|
|
|
|
switchWithPostfix('l1'), switchWithPostfix('l2'),
|
|
|
|
switchWithPostfix('l3'), switchWithPostfix('l4'),
|
|
|
|
],
|
2020-03-29 12:36:59 -07:00
|
|
|
'STS-WTR-250': [cfg.binary_sensor_water_leak, cfg.sensor_battery, cfg.sensor_temperature],
|
2020-01-25 12:00:22 -07:00
|
|
|
'ZG2835RAC': [cfg.light_brightness],
|
|
|
|
'BW-IS2': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'BW-IS3': [cfg.binary_sensor_occupancy],
|
2020-01-29 10:34:40 -07:00
|
|
|
'SLR1b': [cfg.thermostat()],
|
|
|
|
'WPT1': [],
|
2020-01-29 13:38:37 -07:00
|
|
|
'4058075047853': [cfg.light_brightness_colortemp_colorxy],
|
2020-01-30 12:08:31 -07:00
|
|
|
'ROB_200-003-0': [cfg.switch],
|
|
|
|
'4512704': [cfg.switch],
|
2020-01-31 13:05:13 -07:00
|
|
|
'AV2010/24A': [cfg.binary_sensor_smoke, cfg.binary_sensor_battery_low, cfg.binary_sensor_tamper],
|
2020-02-22 11:03:06 -07:00
|
|
|
'902010/24': [cfg.binary_sensor_smoke, cfg.binary_sensor_battery_low, cfg.binary_sensor_tamper],
|
2020-01-31 13:05:13 -07:00
|
|
|
'ROB_200-014-0': [cfg.light_brightness],
|
2020-02-01 09:35:20 -07:00
|
|
|
'4090631P7': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'SGMHM-I1': [cfg.binary_sensor_gas, cfg.binary_sensor_battery_low, cfg.binary_sensor_tamper],
|
|
|
|
'STHM-I1H': [cfg.sensor_humidity, cfg.sensor_temperature, cfg.sensor_battery],
|
|
|
|
'BDHM8E27W70-I1': [cfg.light_brightness_colortemp],
|
2020-02-04 12:28:47 -07:00
|
|
|
'M420': [cfg.sensor_battery],
|
2020-02-05 13:38:42 -07:00
|
|
|
'8718696167991': [cfg.light_brightness_colortemp_colorxy],
|
2020-02-08 11:55:27 -07:00
|
|
|
'GP-LBU019BBAWU': [cfg.light_brightness],
|
2020-02-08 15:41:22 -07:00
|
|
|
'371000001': [cfg.light_brightness_colortemp],
|
|
|
|
'10011725': [cfg.light_brightness_colortemp_colorxy],
|
2020-02-09 12:44:37 -07:00
|
|
|
'929002277501': [cfg.light_brightness],
|
2020-02-13 13:35:37 -07:00
|
|
|
'RS 230 C': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'LED1903C5': [cfg.light_brightness_colortemp],
|
|
|
|
'1402755': [cfg.light_brightness],
|
2020-02-15 08:39:35 -07:00
|
|
|
'4503848C5': [cfg.light_brightness_colortemp],
|
|
|
|
'500.48': [cfg.light_brightness],
|
2020-02-18 14:07:34 -07:00
|
|
|
'TS0042': [cfg.sensor_action],
|
|
|
|
'RHK06': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'RHK07': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'RHK08': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
|
|
|
'RHK09': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
2020-02-19 14:12:25 -07:00
|
|
|
'07046L': [cfg.sensor_action],
|
|
|
|
'07045L': [cfg.binary_sensor_contact, cfg.binary_sensor_tamper, cfg.binary_sensor_battery_low],
|
|
|
|
'3402831P7': [cfg.light_brightness_colortemp],
|
|
|
|
'TERNCY-SD01': [cfg.sensor_click, cfg.sensor_battery],
|
2020-02-22 11:03:06 -07:00
|
|
|
'07048L': [cfg.switch, cfg.sensor_power],
|
|
|
|
'ICZB-KPD14S': [cfg.sensor_battery, cfg.sensor_click, cfg.sensor_action],
|
2020-02-23 12:26:13 -07:00
|
|
|
'73743': [cfg.sensor_action, cfg.sensor_battery],
|
2020-02-25 12:20:52 -07:00
|
|
|
'C4': [cfg.sensor_action],
|
2020-02-26 09:30:38 -07:00
|
|
|
'GL-D-003ZS': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-09 10:59:48 -07:00
|
|
|
'66492-001': [cfg.lock, cfg.sensor_battery],
|
2020-02-28 15:27:12 -07:00
|
|
|
'798.09': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-15 01:38:39 -07:00
|
|
|
'U202DST600ZB': [lightWithPostfix('light_brightness', 'l1'), lightWithPostfix('light_brightness', 'l2')],
|
2020-03-02 13:11:54 -07:00
|
|
|
'SM10ZW': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'ICZB-R11D': [cfg.light_brightness],
|
2020-03-03 12:33:10 -07:00
|
|
|
'SW2500ZB': [cfg.switch],
|
2020-03-11 12:11:47 -07:00
|
|
|
'4512703': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'4512702': [cfg.sensor_action, cfg.sensor_battery],
|
|
|
|
'4090331P9': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'HS1EB': [cfg.sensor_click],
|
2020-03-18 14:50:45 -07:00
|
|
|
'HS2SW1A-N': [cfg.switch],
|
|
|
|
'HS2SW2A-N': [switchWithPostfix('left'), switchWithPostfix('right')],
|
|
|
|
'HS2SW3A-N': [switchWithPostfix('left'), switchWithPostfix('right'), switchWithPostfix('center')],
|
2020-03-13 10:39:40 -07:00
|
|
|
'LifeControl_Leak_Sensor': [cfg.binary_sensor_water_leak, cfg.sensor_battery],
|
2020-03-15 07:25:28 -07:00
|
|
|
'LifeControl_Door_Sensor': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
2020-03-13 10:39:40 -07:00
|
|
|
'LifeControl_RGB_Led': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-16 12:07:53 -07:00
|
|
|
'3323-G': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.binary_sensor_battery_low],
|
2020-03-13 11:24:20 -07:00
|
|
|
'ZL1000400-CCT-EU-2-V1A02': [cfg.light_brightness_colortemp],
|
2020-03-15 14:42:39 -07:00
|
|
|
'ROB_200-007-0': [cfg.sensor_action, cfg.sensor_battery],
|
2020-03-15 08:58:48 -07:00
|
|
|
'PM-S140-ZB': [cfg.switch],
|
|
|
|
'PM-S240-ZB': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
|
|
|
'PM-S340-ZB': [switchWithPostfix('top'), switchWithPostfix('center'), switchWithPostfix('bottom')],
|
|
|
|
'U201DST600ZB': [cfg.light_brightness],
|
|
|
|
'U201SRY2KWZB': [cfg.switch],
|
|
|
|
'U202SRY2KWZB': [switchWithPostfix('l1'), switchWithPostfix('l2')],
|
2020-03-16 12:20:00 -07:00
|
|
|
'93999': [cfg.light_brightness],
|
2020-04-08 10:12:34 -07:00
|
|
|
'ZHS-15': [cfg.switch, cfg.sensor_power, cfg.sensor_current, cfg.sensor_voltage],
|
2020-04-02 05:29:39 -07:00
|
|
|
'GS361A-H04': [
|
|
|
|
cfg.lock_child_lock,
|
|
|
|
cfg.switch_window_detection,
|
|
|
|
cfg.switch_valve_detection,
|
|
|
|
cfg.thermostat(5, 30, 'current_heating_setpoint', 0.5),
|
|
|
|
cfg.sensor_battery,
|
|
|
|
],
|
2020-03-18 14:50:45 -07:00
|
|
|
'HLC614-ZLL': [switchWithPostfix('l1'), switchWithPostfix('l2'), switchWithPostfix('l3')],
|
2020-03-27 12:44:10 -07:00
|
|
|
'EMIZB-132': [
|
|
|
|
cfg.sensor_power, cfg.sensor_voltage, cfg.sensor_current, cfg.sensor_energy, cfg.sensor_current_phase_b,
|
|
|
|
cfg.sensor_current_phase_c, cfg.sensor_voltage_phase_b, cfg.sensor_voltage_phase_c,
|
|
|
|
],
|
2020-03-20 11:46:57 -07:00
|
|
|
'S9ZGBRC01': [cfg.sensor_action, cfg.sensor_battery],
|
2020-03-23 11:42:06 -07:00
|
|
|
'511.557': [cfg.sensor_action],
|
|
|
|
'RL804CZB': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-26 14:15:22 -07:00
|
|
|
'3420-G': [cfg.light_brightness],
|
2020-03-26 14:24:22 -07:00
|
|
|
'U02I007C.01': [
|
2020-03-26 14:09:59 -07:00
|
|
|
cfg.sensor_action, cfg.binary_sensor_contact, cfg.binary_sensor_water_leak,
|
|
|
|
cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery,
|
|
|
|
],
|
2020-03-26 14:24:22 -07:00
|
|
|
'4080248P9': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'4080148P9': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'4058075148338': [cfg.light_brightness_colortemp],
|
2020-03-27 09:45:34 -07:00
|
|
|
'484719': [cfg.light_brightness],
|
2020-03-27 12:44:10 -07:00
|
|
|
'SEB01ZB': [cfg.binary_sensor_sos, cfg.sensor_battery],
|
|
|
|
'SBM01ZB': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
|
|
|
|
'STH01ZB': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
|
|
|
'SSA01ZB': [cfg.binary_sensor_smoke, cfg.sensor_battery],
|
|
|
|
'SCA01ZB': [cfg.binary_sensor_carbon_monoxide, cfg.sensor_battery],
|
|
|
|
'SGA01ZB': [cfg.binary_sensor_gas, cfg.sensor_battery],
|
|
|
|
'SWA01ZB': [cfg.binary_sensor_water_leak, cfg.sensor_battery],
|
|
|
|
'SDM01ZB': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
|
|
|
'SFS01ZB': [cfg.switch],
|
|
|
|
'SLS301ZB_2': [switchWithPostfix('left'), switchWithPostfix('right')],
|
|
|
|
'SLS301ZB_3': [switchWithPostfix('left'), switchWithPostfix('right'), switchWithPostfix('center')],
|
|
|
|
'SSS401ZB': [cfg.switch, cfg.sensor_action],
|
|
|
|
'E12-N1E': [cfg.light_brightness_colortemp_colorxy],
|
|
|
|
'4040B': [cfg.sensor_power, switchWithPostfix('l1'), switchWithPostfix('l2')],
|
2020-03-28 11:12:49 -07:00
|
|
|
'3460-L': [cfg.sensor_action, cfg.sensor_temperature, cfg.sensor_battery],
|
2020-03-29 12:22:48 -07:00
|
|
|
'3157100': [cfg.thermostat_heatcool(10, 30, 1, ['auto', 'on']), cfg.sensor_battery],
|
2020-03-29 12:14:48 -07:00
|
|
|
'4257050-RZHAC': [cfg.switch, cfg.sensor_power],
|
2020-03-29 11:28:54 -07:00
|
|
|
'27087-03': [cfg.switch, cfg.sensor_battery],
|
2020-03-29 12:36:59 -07:00
|
|
|
'99140-002': [cfg.lock, cfg.sensor_battery],
|
|
|
|
'4512706': [cfg.sensor_battery, cfg.sensor_action],
|
|
|
|
'GL-S-004ZS': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-30 10:45:08 -07:00
|
|
|
'7121131PU': [cfg.light_brightness_colortemp_colorxy],
|
2020-03-31 10:01:24 -07:00
|
|
|
'RL804QZB': [switchWithPostfix('l1'), switchWithPostfix('l2'), switchWithPostfix('l3')],
|
2020-03-31 09:53:51 -07:00
|
|
|
'RC-2000WH': [cfg.thermostat_heatcool(10, 30, 1, ['auto', 'on', 'smart'])],
|
2020-03-31 10:59:12 -07:00
|
|
|
'TH1300ZB': [cfg.thermostat()],
|
2020-04-03 10:19:52 -07:00
|
|
|
'SP 220': [cfg.switch],
|
|
|
|
'511.040': [cfg.light_brightness_colortemp_colorxy],
|
2020-04-05 12:53:18 -07:00
|
|
|
'511.344': [cfg.sensor_battery, cfg.sensor_action, cfg.sensor_action_color],
|
2020-04-06 12:39:06 -07:00
|
|
|
'SMSZB-120': [cfg.binary_sensor_smoke, cfg.sensor_temperature, cfg.sensor_battery],
|
2020-04-09 12:54:26 -07:00
|
|
|
'GreenPower_On_Off_Switch': [cfg.sensor_action],
|
|
|
|
'GreenPower_7': [cfg.sensor_action],
|
2020-04-09 11:02:59 -07:00
|
|
|
'3RSL011Z': [cfg.light_brightness_colortemp],
|
|
|
|
'3RSL012Z': [cfg.light_brightness_colortemp],
|
|
|
|
'1746130P7': [cfg.light_brightness_colortemp_colorxy],
|
2018-05-16 10:40:05 -07:00
|
|
|
};
|
|
|
|
|
2019-02-20 12:10:38 -07:00
|
|
|
Object.keys(mapping).forEach((key) => {
|
2019-09-22 11:02:46 -07:00
|
|
|
mapping[key].push(cfg.sensor_linkquality);
|
2019-02-20 12:10:38 -07:00
|
|
|
});
|
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
/**
|
|
|
|
* This extensions handles integration with HomeAssistant
|
|
|
|
*/
|
2019-09-17 09:32:16 -07:00
|
|
|
class HomeAssistant extends BaseExtension {
|
2020-01-09 13:47:19 -07:00
|
|
|
constructor(zigbee, mqtt, state, publishEntityState, eventBus) {
|
|
|
|
super(zigbee, mqtt, state, publishEntityState, eventBus);
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
// A map of all discoverd devices
|
|
|
|
this.discovered = {};
|
2020-02-29 10:07:15 -07:00
|
|
|
this.discoveredTriggers = {};
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
if (!settings.get().advanced.cache_state) {
|
|
|
|
logger.warn('In order for HomeAssistant integration to work properly set `cache_state: true');
|
|
|
|
}
|
2019-03-04 10:13:36 -07:00
|
|
|
|
|
|
|
if (settings.get().experimental.output === 'attribute') {
|
|
|
|
throw new Error('Home Assitant integration is not possible with attribute output!');
|
|
|
|
}
|
2019-03-15 14:41:39 -07:00
|
|
|
|
|
|
|
this.discoveryTopic = settings.get().advanced.homeassistant_discovery_topic;
|
2019-06-24 11:52:47 -07:00
|
|
|
this.statusTopic = settings.get().advanced.homeassistant_status_topic;
|
2020-01-09 13:47:19 -07:00
|
|
|
|
|
|
|
this.eventBus.on('deviceRemoved', (data) => this.onDeviceRemoved(data.device));
|
2020-02-29 10:07:15 -07:00
|
|
|
this.eventBus.on('publishEntityState', (data) => this.onPublishEntityState(data));
|
2020-03-04 04:55:08 -07:00
|
|
|
this.eventBus.on('deviceRenamed', (data) => this.onDeviceRenamed(data.device));
|
2020-01-09 13:47:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
onDeviceRemoved(device) {
|
|
|
|
const mappedModel = zigbeeHerdsmanConverters.findByZigbeeModel(device.modelID);
|
|
|
|
if (mappedModel) {
|
|
|
|
logger.info(`Clearing Home Assistant discovery topic for '${device.ieeeAddr}'`);
|
2020-02-21 16:32:15 -07:00
|
|
|
this.getConfigs(mappedModel).forEach((config) => {
|
2020-01-09 13:47:19 -07:00
|
|
|
const topic = this.getDiscoveryTopic(config, device);
|
|
|
|
this.mqtt.publish(topic, null, {retain: true, qos: 0}, this.discoveryTopic);
|
|
|
|
});
|
|
|
|
}
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2020-02-29 10:07:15 -07:00
|
|
|
async onPublishEntityState(data) {
|
2020-03-15 01:38:39 -07:00
|
|
|
/**
|
|
|
|
* In case we deal with a lightWithPostfix configuration Zigbee2mqtt publishes
|
|
|
|
* e.g. {state_l1: ON, brightness_l1: 250} to zigbee2mqtt/mydevice.
|
|
|
|
* As the Home Assistant MQTT JSON light cannot be configured to use state_l1/brightness_l1
|
|
|
|
* as the state variables, the state topic is set to zigbee2mqtt/mydevice/l1.
|
|
|
|
* Here we retrieve all the attributes with the _l1 values and republish them on
|
|
|
|
* zigbee2mqtt/mydevice/l1.
|
|
|
|
*/
|
2020-04-04 15:05:05 -07:00
|
|
|
if (data.entity.definition && mapping[data.entity.definition.model]) {
|
|
|
|
for (const config of mapping[data.entity.definition.model]) {
|
2020-03-15 01:38:39 -07:00
|
|
|
const match = /light_(.*)/.exec(config['object_id']);
|
|
|
|
if (match) {
|
|
|
|
const postfix = match[1];
|
|
|
|
const posfixRegExp = new RegExp(`(.*)_${postfix}`);
|
|
|
|
const payload = {};
|
|
|
|
for (const key of Object.keys(data.payload)) {
|
|
|
|
const keyMatch = posfixRegExp.exec(key);
|
|
|
|
if (keyMatch) {
|
|
|
|
payload[keyMatch[1]] = data.payload[key];
|
|
|
|
}
|
|
|
|
}
|
2020-02-29 10:07:15 -07:00
|
|
|
|
2020-03-15 01:38:39 -07:00
|
|
|
await this.mqtt.publish(
|
|
|
|
`${data.entity.name}/${postfix}`, JSON.stringify(payload), {},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements the MQTT device trigger (https://www.home-assistant.io/integrations/device_trigger.mqtt/)
|
|
|
|
* The MQTT device trigger does not support JSON parsing, so it cannot listen to zigbee2mqtt/my_device
|
|
|
|
* Whenever a device publish an {action: *} we discover an MQTT device trigger sensor
|
|
|
|
* and republish it to zigbee2mqtt/my_devic/action
|
|
|
|
*/
|
|
|
|
const key = ['action', 'click'].find((k) => data.payload.hasOwnProperty(k) && data.payload[k] !== '');
|
2020-04-04 15:05:05 -07:00
|
|
|
if (data.entity.definition && key) {
|
2020-02-29 10:07:15 -07:00
|
|
|
const device = data.entity.device;
|
|
|
|
if (!this.discoveredTriggers[device.ieeeAddr]) {
|
|
|
|
this.discoveredTriggers[device.ieeeAddr] = new Set();
|
|
|
|
}
|
|
|
|
|
|
|
|
const value = data.payload[key];
|
|
|
|
const discoveredKey = `${key}_${value}`;
|
|
|
|
|
|
|
|
if (!this.discoveredTriggers[device.ieeeAddr].has(discoveredKey)) {
|
|
|
|
const config = cfg[`trigger_${key}`];
|
|
|
|
config.object_id = `${key}_${value}`;
|
|
|
|
const topic = this.getDiscoveryTopic(config, device);
|
|
|
|
const payload = {
|
|
|
|
...config.discovery_payload,
|
|
|
|
subtype: value,
|
|
|
|
payload: value,
|
|
|
|
topic: `${settings.get().mqtt.base_topic}/${data.entity.name}/${key}`,
|
2020-04-04 15:05:05 -07:00
|
|
|
device: this.getDevicePayload(data.entity.settings, data.entity.definition),
|
2020-02-29 10:07:15 -07:00
|
|
|
};
|
|
|
|
|
2020-03-15 01:38:39 -07:00
|
|
|
await this.mqtt.publish(topic, JSON.stringify(payload), {retain: true, qos: 0}, this.discoveryTopic);
|
2020-02-29 10:07:15 -07:00
|
|
|
this.discoveredTriggers[device.ieeeAddr].add(discoveredKey);
|
|
|
|
}
|
|
|
|
|
|
|
|
await this.mqtt.publish(`${data.entity.name}/${key}`, value, {});
|
|
|
|
}
|
2020-03-20 09:50:28 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Publish a value for update_available (if not there yet) to prevent Home Assistant generating warnings of
|
|
|
|
* this value not being available.
|
|
|
|
*/
|
2020-03-26 14:01:05 -07:00
|
|
|
const mockedValues = [
|
|
|
|
{
|
|
|
|
property: 'update_available',
|
2020-04-04 15:05:05 -07:00
|
|
|
condition: data.entity.device && data.entity.definition && data.entity.definition.hasOwnProperty('ota'),
|
2020-03-26 14:01:05 -07:00
|
|
|
value: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
property: 'water_leak',
|
2020-04-04 15:05:05 -07:00
|
|
|
condition: data.entity.device && data.entity.definition &&
|
|
|
|
mapping[data.entity.definition.model].includes(cfg.binary_sensor_water_leak),
|
2020-03-26 14:01:05 -07:00
|
|
|
value: false,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
for (const entry of mockedValues) {
|
|
|
|
if (entry.condition && !data.payload.hasOwnProperty(entry.property)) {
|
|
|
|
logger.debug(`Mocking '${entry.property}' value for Home Assistant`);
|
|
|
|
this.publishEntityState(data.entity.device.ieeeAddr, {[entry.property]: entry.value});
|
|
|
|
}
|
2020-03-20 09:50:28 -07:00
|
|
|
}
|
2020-02-29 10:07:15 -07:00
|
|
|
}
|
|
|
|
|
2020-03-04 04:55:08 -07:00
|
|
|
onDeviceRenamed(device) {
|
|
|
|
const mappedModel = zigbeeHerdsmanConverters.findByZigbeeModel(device.modelID);
|
|
|
|
logger.info(`Refreshing Home Assistant discovery topic for '${device.ieeeAddr}'`);
|
|
|
|
this.discover(device, mappedModel, true);
|
|
|
|
}
|
|
|
|
|
2019-09-09 10:48:09 -07:00
|
|
|
async onMQTTConnected() {
|
2019-06-24 11:52:47 -07:00
|
|
|
this.mqtt.subscribe(this.statusTopic);
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
// MQTT discovery of all paired devices on startup.
|
2019-09-23 13:21:27 -07:00
|
|
|
for (const device of this.zigbee.getClients()) {
|
2019-09-09 10:48:09 -07:00
|
|
|
const mappedModel = zigbeeHerdsmanConverters.findByZigbeeModel(device.modelID);
|
2018-12-07 15:17:29 -07:00
|
|
|
if (mappedModel) {
|
2020-01-09 13:47:19 -07:00
|
|
|
this.discover(device, mappedModel, true);
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
2019-09-09 10:48:09 -07:00
|
|
|
}
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
2018-06-24 05:21:56 -07:00
|
|
|
|
2020-02-21 16:32:15 -07:00
|
|
|
getConfigs(mappedModel) {
|
2020-03-01 07:55:20 -07:00
|
|
|
let configs = mapping[mappedModel.model].slice();
|
2020-02-21 16:32:15 -07:00
|
|
|
if (mappedModel.hasOwnProperty('ota')) {
|
|
|
|
configs.push(cfg.binary_sensor_update_available);
|
|
|
|
}
|
2020-03-01 07:55:20 -07:00
|
|
|
|
|
|
|
if (!settings.get().advanced.homeassistant_legacy_triggers) {
|
|
|
|
configs = configs.filter((c) => c !== cfg.sensor_action && c !== cfg.sensor_click);
|
|
|
|
}
|
|
|
|
|
2020-02-21 16:32:15 -07:00
|
|
|
return configs;
|
|
|
|
}
|
|
|
|
|
2020-01-09 13:47:19 -07:00
|
|
|
discover(device, mappedModel, force=false) {
|
2018-11-16 12:23:11 -07:00
|
|
|
// Check if already discoverd and check if there are configs.
|
2020-01-09 13:47:19 -07:00
|
|
|
const discover = force || !this.discovered[device.ieeeAddr];
|
2019-02-19 11:43:50 -07:00
|
|
|
if (!discover) {
|
2018-11-16 12:23:11 -07:00
|
|
|
return;
|
2018-06-24 05:21:56 -07:00
|
|
|
}
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2020-01-09 13:47:19 -07:00
|
|
|
const entity = settings.getEntity(device.ieeeAddr);
|
2019-10-07 12:58:35 -07:00
|
|
|
if (!entity || (entity.type === 'device' && !mapping[mappedModel.model]) ||
|
|
|
|
(entity.hasOwnProperty('homeassistant') && !entity.homeassistant)) {
|
2019-02-19 11:43:50 -07:00
|
|
|
return;
|
|
|
|
}
|
2018-11-16 12:23:11 -07:00
|
|
|
|
2020-02-21 16:32:15 -07:00
|
|
|
this.getConfigs(mappedModel).forEach((config) => {
|
2020-01-09 13:47:19 -07:00
|
|
|
const topic = this.getDiscoveryTopic(config, device);
|
2018-11-16 12:23:11 -07:00
|
|
|
const payload = {...config.discovery_payload};
|
2020-03-15 01:38:39 -07:00
|
|
|
let stateTopic = `${settings.get().mqtt.base_topic}/${entity.friendlyName}`;
|
|
|
|
if (payload.state_topic_postfix) {
|
|
|
|
stateTopic += `/${payload.state_topic_postfix}`;
|
|
|
|
delete payload.state_topic_postfix;
|
|
|
|
}
|
2019-02-23 08:02:45 -07:00
|
|
|
|
|
|
|
if (!payload.hasOwnProperty('state_topic') || payload.state_topic) {
|
|
|
|
payload.state_topic = stateTopic;
|
2019-09-09 10:48:09 -07:00
|
|
|
} else {
|
|
|
|
/* istanbul ignore else */
|
|
|
|
if (payload.hasOwnProperty('state_topic')) {
|
|
|
|
delete payload.state_topic;
|
|
|
|
}
|
2019-02-23 08:02:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.position_topic) {
|
|
|
|
payload.position_topic = stateTopic;
|
|
|
|
}
|
2018-11-16 12:23:11 -07:00
|
|
|
|
2019-08-08 11:26:50 -07:00
|
|
|
if (payload.tilt_status_topic) {
|
|
|
|
payload.tilt_status_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
2019-11-19 12:50:55 -07:00
|
|
|
payload.json_attributes_topic = stateTopic;
|
2019-01-14 10:04:33 -07:00
|
|
|
|
2018-12-07 15:13:20 -07:00
|
|
|
// Set (unique) name
|
2019-02-19 11:43:50 -07:00
|
|
|
payload.name = `${entity.friendlyName}_${config.object_id}`;
|
2018-11-16 12:23:11 -07:00
|
|
|
|
2018-12-07 15:09:15 -07:00
|
|
|
// Set unique_id
|
2019-09-09 10:48:09 -07:00
|
|
|
payload.unique_id = `${entity.ID}_${config.object_id}_${settings.get().mqtt.base_topic}`;
|
2018-11-16 12:23:11 -07:00
|
|
|
|
2018-12-07 15:17:29 -07:00
|
|
|
// Attributes for device registry
|
2020-02-29 10:07:15 -07:00
|
|
|
payload.device = this.getDevicePayload(entity, mappedModel);
|
2018-12-07 15:17:29 -07:00
|
|
|
|
2018-12-30 12:08:31 -07:00
|
|
|
// Set availability payload
|
2019-01-29 12:17:56 -07:00
|
|
|
// When using availability_timeout each device has it's own availability topic.
|
2018-12-30 12:08:31 -07:00
|
|
|
// If not, use the availability topic of zigbee2mqtt.
|
2019-01-29 12:17:56 -07:00
|
|
|
if (settings.get().advanced.availability_timeout) {
|
2019-02-19 11:43:50 -07:00
|
|
|
payload.availability_topic = `${settings.get().mqtt.base_topic}/${entity.friendlyName}/availability`;
|
2018-12-29 11:55:59 -07:00
|
|
|
} else {
|
|
|
|
payload.availability_topic = `${settings.get().mqtt.base_topic}/bridge/state`;
|
|
|
|
}
|
|
|
|
|
2019-01-08 11:00:47 -07:00
|
|
|
// Add precision to value_template
|
2019-09-09 10:48:09 -07:00
|
|
|
if (entity.hasOwnProperty(`${config.object_id}_precision`)) {
|
|
|
|
const precision = entity[`${config.object_id}_precision`];
|
2019-01-08 11:00:47 -07:00
|
|
|
let template = payload.value_template;
|
|
|
|
template = template.replace('{{ ', '').replace(' }}', '');
|
|
|
|
template = `{{ (${template} | float) | round(${precision}) }}`;
|
|
|
|
payload.value_template = template;
|
|
|
|
}
|
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
if (payload.command_topic) {
|
2019-02-19 11:43:50 -07:00
|
|
|
payload.command_topic = `${settings.get().mqtt.base_topic}/${entity.friendlyName}/`;
|
2018-04-29 05:09:49 -07:00
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
if (payload.command_topic_prefix) {
|
|
|
|
payload.command_topic += `${payload.command_topic_prefix}/`;
|
2019-02-07 11:33:00 -07:00
|
|
|
delete payload.command_topic_prefix;
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
payload.command_topic += 'set';
|
2019-04-24 11:59:06 -07:00
|
|
|
|
|
|
|
if (payload.command_topic_postfix) {
|
|
|
|
payload.command_topic += `/${payload.command_topic_postfix}`;
|
|
|
|
delete payload.command_topic_postfix;
|
|
|
|
}
|
2018-04-29 05:09:49 -07:00
|
|
|
}
|
|
|
|
|
2019-02-23 08:02:45 -07:00
|
|
|
if (payload.set_position_topic && payload.command_topic) {
|
|
|
|
payload.set_position_topic = payload.command_topic;
|
|
|
|
}
|
|
|
|
|
2019-08-08 11:26:50 -07:00
|
|
|
if (payload.tilt_command_topic && payload.command_topic) {
|
|
|
|
// Home Assistant does not support templates to set tilt (as of 2019-08-17),
|
|
|
|
// so we (have to) use a subtopic.
|
|
|
|
payload.tilt_command_topic = payload.command_topic + '/tilt';
|
|
|
|
}
|
|
|
|
|
2019-04-16 07:31:05 -07:00
|
|
|
if (payload.mode_state_topic) {
|
|
|
|
payload.mode_state_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.mode_command_topic) {
|
|
|
|
payload.mode_command_topic = `${stateTopic}/set/system_mode`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.current_temperature_topic) {
|
|
|
|
payload.current_temperature_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.temperature_state_topic) {
|
|
|
|
payload.temperature_state_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
2020-03-29 12:22:48 -07:00
|
|
|
if (payload.temperature_low_state_topic) {
|
|
|
|
payload.temperature_low_state_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.temperature_high_state_topic) {
|
|
|
|
payload.temperature_high_state_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
2019-04-24 11:59:06 -07:00
|
|
|
if (payload.speed_state_topic) {
|
|
|
|
payload.speed_state_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
2019-04-16 07:31:05 -07:00
|
|
|
if (payload.temperature_command_topic) {
|
2019-10-17 09:31:42 -07:00
|
|
|
payload.temperature_command_topic = `${stateTopic}/set/${payload.temperature_command_topic}`;
|
2019-04-16 07:31:05 -07:00
|
|
|
}
|
|
|
|
|
2020-03-29 12:22:48 -07:00
|
|
|
if (payload.temperature_low_command_topic) {
|
|
|
|
payload.temperature_low_command_topic = `${stateTopic}/set/${payload.temperature_low_command_topic}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.temperature_high_command_topic) {
|
|
|
|
payload.temperature_high_command_topic = `${stateTopic}/set/${payload.temperature_high_command_topic}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.fan_mode_state_topic) {
|
|
|
|
payload.fan_mode_state_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (payload.fan_mode_command_topic) {
|
|
|
|
payload.fan_mode_command_topic = `${stateTopic}/set/fan_mode`;
|
|
|
|
}
|
|
|
|
|
2019-04-24 11:59:06 -07:00
|
|
|
if (payload.speed_command_topic) {
|
|
|
|
payload.speed_command_topic = `${stateTopic}/set/fan_mode`;
|
|
|
|
}
|
|
|
|
|
2020-01-06 13:36:45 -07:00
|
|
|
if (payload.action_topic) {
|
|
|
|
payload.action_topic = stateTopic;
|
|
|
|
}
|
|
|
|
|
2019-02-09 11:42:31 -07:00
|
|
|
// Override configuration with user settings.
|
2019-09-09 10:48:09 -07:00
|
|
|
if (entity.hasOwnProperty('homeassistant')) {
|
2019-02-09 11:42:31 -07:00
|
|
|
const add = (obj) => {
|
|
|
|
Object.keys(obj).forEach((key) => {
|
2019-08-16 08:44:18 -07:00
|
|
|
if (['number', 'string', 'boolean'].includes(typeof obj[key])) {
|
2019-02-09 11:42:31 -07:00
|
|
|
payload[key] = obj[key];
|
2019-09-09 10:48:09 -07:00
|
|
|
} else if (obj[key] === null) {
|
2019-08-16 08:44:18 -07:00
|
|
|
delete payload[key];
|
2019-03-10 13:48:40 -07:00
|
|
|
} else if (key === 'device' && typeof obj[key] === 'object') {
|
|
|
|
Object.keys(obj['device']).forEach((key) => {
|
|
|
|
payload['device'][key] = obj['device'][key];
|
|
|
|
});
|
2019-02-09 11:42:31 -07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2019-09-09 10:48:09 -07:00
|
|
|
add(entity.homeassistant);
|
2019-02-09 11:42:31 -07:00
|
|
|
|
2019-09-09 10:48:09 -07:00
|
|
|
if (entity.homeassistant.hasOwnProperty(config.object_id)) {
|
|
|
|
add(entity.homeassistant[config.object_id]);
|
2019-02-09 11:42:31 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-09 10:48:09 -07:00
|
|
|
this.mqtt.publish(topic, JSON.stringify(payload), {retain: true, qos: 0}, this.discoveryTopic);
|
2018-11-16 12:23:11 -07:00
|
|
|
});
|
|
|
|
|
2020-01-09 13:47:19 -07:00
|
|
|
this.discovered[device.ieeeAddr] = true;
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
onMQTTMessage(topic, message) {
|
2019-09-09 10:48:09 -07:00
|
|
|
if (topic !== this.statusTopic) {
|
2018-11-16 12:23:11 -07:00
|
|
|
return false;
|
2018-04-25 11:54:41 -07:00
|
|
|
}
|
|
|
|
|
2019-09-09 10:48:09 -07:00
|
|
|
if (message.toLowerCase() === 'online') {
|
|
|
|
const timer = setTimeout(async () => {
|
2018-11-16 12:23:11 -07:00
|
|
|
// Publish all device states.
|
2019-09-23 13:21:27 -07:00
|
|
|
for (const device of this.zigbee.getClients()) {
|
2019-05-02 11:14:44 -07:00
|
|
|
if (this.state.exists(device.ieeeAddr)) {
|
2019-03-15 15:18:19 -07:00
|
|
|
this.publishEntityState(device.ieeeAddr, this.state.get(device.ieeeAddr));
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
2019-09-09 10:48:09 -07:00
|
|
|
}
|
2018-04-25 11:54:41 -07:00
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
clearTimeout(timer);
|
2020-03-10 11:32:44 -07:00
|
|
|
}, 30000);
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
2018-06-09 03:27:04 -07:00
|
|
|
}
|
|
|
|
|
2020-04-05 06:41:24 -07:00
|
|
|
onZigbeeEvent(type, data, resolvedEntity) {
|
2019-09-09 10:48:09 -07:00
|
|
|
const device = data.device;
|
2020-04-05 06:41:24 -07:00
|
|
|
if (device && resolvedEntity && resolvedEntity.definition) {
|
|
|
|
this.discover(device, resolvedEntity.definition);
|
2018-11-16 12:23:11 -07:00
|
|
|
}
|
|
|
|
}
|
2018-06-09 03:27:04 -07:00
|
|
|
|
2020-02-29 10:07:15 -07:00
|
|
|
getDevicePayload(entity, mappedModel) {
|
|
|
|
return {
|
|
|
|
identifiers: [`zigbee2mqtt_${entity.ID}`],
|
|
|
|
name: entity.friendlyName,
|
|
|
|
sw_version: `Zigbee2mqtt ${zigbee2mqttVersion}`,
|
|
|
|
model: `${mappedModel.description} (${mappedModel.model})`,
|
|
|
|
manufacturer: mappedModel.vendor,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-01-09 13:47:19 -07:00
|
|
|
getDiscoveryTopic(config, device) {
|
|
|
|
return `${config.type}/${device.ieeeAddr}/${config.object_id}/config`;
|
|
|
|
}
|
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
// Only for homeassistant.test.js
|
|
|
|
_getMapping() {
|
|
|
|
return mapping;
|
|
|
|
}
|
2018-06-09 03:27:04 -07:00
|
|
|
}
|
|
|
|
|
2018-11-16 12:23:11 -07:00
|
|
|
module.exports = HomeAssistant;
|