mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-29 07:08:56 +00:00
Added set of HEIMAN devices (#4395)
* Added HEIMAN HS1VS-N water leak sensor * Added HEIMAN HS1HT-N temperature and humidity sensor * Added HEIMAN HS3DS Door sensor * Added HEIMAN HS1RC-N Smart remote controller * Added/updated HEIMAN HS1EB-E Smart emergency button * Added HEIMAN HS2AQ-EM Air quality monitor * Fix lint error Co-authored-by: Pavel Sokolov <pavel@tvip.ru>
This commit is contained in:
co-authored by
Pavel Sokolov
parent
9eba6d62db
commit
a33622c52b
@@ -266,6 +266,42 @@ const cfg = {
|
||||
value_template: '{{ value_json.voc }}',
|
||||
},
|
||||
},
|
||||
'sensor_pm25': {
|
||||
type: 'sensor',
|
||||
object_id: 'pm25',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'µg/m³',
|
||||
icon: 'mdi:air-filter',
|
||||
value_template: '{{ value_json.pm25 }}',
|
||||
},
|
||||
},
|
||||
'sensor_pm10': {
|
||||
type: 'sensor',
|
||||
object_id: 'pm10',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'µg/m³',
|
||||
icon: 'mdi:air-filter',
|
||||
value_template: '{{ value_json.pm10}}',
|
||||
},
|
||||
},
|
||||
'sensor_hcho': {
|
||||
type: 'sensor',
|
||||
object_id: 'hcho',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'µg/m³',
|
||||
icon: 'mdi:air-filter',
|
||||
value_template: '{{ value_json.hcho }}',
|
||||
},
|
||||
},
|
||||
'sensor_aqi': {
|
||||
type: 'sensor',
|
||||
object_id: 'aqi',
|
||||
discovery_payload: {
|
||||
// unit_of_measurement: 'ppb',
|
||||
icon: 'mdi:air-filter',
|
||||
value_template: '{{ value_json.aqi }}',
|
||||
},
|
||||
},
|
||||
'sensor_temperature': {
|
||||
type: 'sensor',
|
||||
object_id: 'temperature',
|
||||
@@ -423,6 +459,14 @@ const cfg = {
|
||||
value_template: '{{ value_json.battery }}',
|
||||
},
|
||||
},
|
||||
'sensor_battery_state': {
|
||||
type: 'sensor',
|
||||
object_id: 'battery_state',
|
||||
discovery_payload: {
|
||||
icon: 'mdi:battery-charging',
|
||||
value_template: '{{ value_json.battery_state }}',
|
||||
},
|
||||
},
|
||||
'sensor_linkquality': {
|
||||
type: 'sensor',
|
||||
object_id: 'linkquality',
|
||||
@@ -1040,8 +1084,14 @@ const mapping = {
|
||||
'RB 248 T': [cfg.light_brightness_colortemp],
|
||||
'HS3SA': [cfg.binary_sensor_smoke, cfg.binary_sensor_battery_low],
|
||||
'HS1DS/HS3DS': [cfg.binary_sensor_contact],
|
||||
'HS3DS': [
|
||||
cfg.binary_sensor_contact, cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
||||
cfg.binary_sensor_tamper],
|
||||
'HS1WL/HS3WL': [cfg.binary_sensor_water_leak],
|
||||
'HS1-WL-E': [cfg.binary_sensor_water_leak],
|
||||
'HS1WL-N': [
|
||||
cfg.binary_sensor_water_leak, cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
||||
cfg.binary_sensor_tamper],
|
||||
'HS1VS-N': [
|
||||
cfg.binary_sensor_vibration, cfg.sensor_battery, cfg.binary_sensor_battery_low,
|
||||
cfg.binary_sensor_tamper],
|
||||
@@ -1243,6 +1293,7 @@ const mapping = {
|
||||
'HLC610-Z': [cfg.light_brightness],
|
||||
'BY 285 C': [cfg.light_brightness_colortemp_colorxy],
|
||||
'HS1RC-M': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'HS1RC-N': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'SWO-WDS1PA': [cfg.binary_sensor_contact],
|
||||
'LLKZMK11LM': [
|
||||
switchEndpoint('l1'), switchEndpoint('l2'),
|
||||
@@ -1604,7 +1655,12 @@ const mapping = {
|
||||
'HGZB-DLC4-N12B': [cfg.light_brightness_colortemp_colorxy],
|
||||
'U86KCJ-ZP': [cfg.sensor_action],
|
||||
'HS1HT': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
||||
'HS1HT-N': [cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery],
|
||||
'HS2ESK-E': [cfg.switch, cfg.sensor_power],
|
||||
'HS2AQ-EM': [
|
||||
cfg.sensor_battery, cfg.sensor_temperature, cfg.sensor_humidity, cfg.sensor_battery_state,
|
||||
cfg.sensor_voc, cfg.sensor_pm25, cfg.sensor_pm10, cfg.sensor_hcho, cfg.sensor_aqi,
|
||||
],
|
||||
'B01M7Y8BP9': [cfg.sensor_action],
|
||||
'GP-WOU019BBDWG': [cfg.switch, cfg.sensor_power, cfg.sensor_energy],
|
||||
'AV2010/21A': [cfg.binary_sensor_battery_low, cfg.binary_sensor_contact, cfg.binary_sensor_tamper],
|
||||
@@ -1664,7 +1720,7 @@ const mapping = {
|
||||
'4512721': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'4512702': [cfg.sensor_action, cfg.sensor_battery],
|
||||
'4090331P9': [cfg.light_brightness_colortemp_colorxy],
|
||||
'HS1EB': [cfg.sensor_click, cfg.sensor_action],
|
||||
'HS1EB/HS1EB-E': [cfg.sensor_click, cfg.sensor_action, cfg.sensor_battery],
|
||||
'HS2SW1A-N': [cfg.switch],
|
||||
'HS2SW2A-N': [switchEndpoint('left'), switchEndpoint('right')],
|
||||
'HS2SW3A-N': [switchEndpoint('left'), switchEndpoint('right'), switchEndpoint('center')],
|
||||
|
||||
Reference in New Issue
Block a user