mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 10:01:37 +00:00
Added hue/saturation mode and tamper to home assistant (#2603)
* Added hue/saturation mode to home assistant extension * Added tamper to homeassistant * Fix ESlint stuff * Update homeassistant.js Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
@@ -26,6 +26,15 @@ const cfg = {
|
||||
device_class: 'presence',
|
||||
},
|
||||
},
|
||||
'binary_sensor_tamper': {
|
||||
type: 'binary_sensor',
|
||||
object_id: 'tamper',
|
||||
discovery_payload: {
|
||||
payload_on: false,
|
||||
payload_off: true,
|
||||
value_template: '{{ value_json.tamper }}',
|
||||
},
|
||||
},
|
||||
'binary_sensor_contact': {
|
||||
type: 'binary_sensor',
|
||||
object_id: 'contact',
|
||||
@@ -297,6 +306,17 @@ const cfg = {
|
||||
command_topic: true,
|
||||
},
|
||||
},
|
||||
'light_brightness_colortemp_colorhs': {
|
||||
type: 'light',
|
||||
object_id: 'light',
|
||||
discovery_payload: {
|
||||
brightness: true,
|
||||
color_temp: true,
|
||||
hs: true,
|
||||
schema: 'json',
|
||||
command_topic: true,
|
||||
},
|
||||
},
|
||||
'light_brightness_colortemp': {
|
||||
type: 'light',
|
||||
object_id: 'light',
|
||||
@@ -531,7 +551,7 @@ const mapping = {
|
||||
'STSS-MULT-001': [cfg.binary_sensor_contact, cfg.sensor_battery],
|
||||
'E11-G23/E11-G33': [cfg.light_brightness],
|
||||
'E1ACA4ABE38A': [cfg.light_brightness],
|
||||
'AC03645': [cfg.light_brightness_colortemp_colorxy],
|
||||
'AC03645': [cfg.light_brightness_colortemp_colorhs],
|
||||
'AC03641': [cfg.light_brightness],
|
||||
'AC03648': [cfg.light_brightness_colortemp],
|
||||
'FB56+ZSW05HG1.2': [cfg.switch],
|
||||
@@ -595,7 +615,10 @@ const mapping = {
|
||||
'HS1SA-M': [cfg.binary_sensor_smoke, cfg.binary_sensor_battery_low],
|
||||
'Z01-A19NAE26': [cfg.light_brightness_colortemp],
|
||||
'Z01-A60EAE27': [cfg.light_brightness_colortemp],
|
||||
'AC01353010G': [cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.binary_sensor_battery_low],
|
||||
'AC01353010G': [
|
||||
cfg.binary_sensor_occupancy, cfg.binary_sensor_tamper,
|
||||
cfg.sensor_temperature, cfg.binary_sensor_battery_low,
|
||||
],
|
||||
'SP 120': [cfg.switch, cfg.sensor_power],
|
||||
'SP 222': [cfg.switch],
|
||||
'RB 248 T': [cfg.light_brightness_colortemp],
|
||||
@@ -835,7 +858,7 @@ const mapping = {
|
||||
'7099860PH': [cfg.light_brightness_colorxy],
|
||||
'HV-GSCXZB269': [cfg.light_brightness_colortemp],
|
||||
'3216231P5': [cfg.light_brightness_colortemp],
|
||||
'AC03647': [cfg.light_brightness_colortemp_colorxy],
|
||||
'AC03647': [cfg.light_brightness_colortemp_colorhs],
|
||||
'12031': [cfg.cover_position],
|
||||
'421792': [cfg.light_brightness_colortemp_colorxy],
|
||||
'HGZB-06A': [cfg.light_brightness_colortemp_colorxy],
|
||||
@@ -990,7 +1013,7 @@ const mapping = {
|
||||
'TS0111': [cfg.switch],
|
||||
'TS0001': [cfg.switch],
|
||||
'TS0207': [cfg.binary_sensor_water_leak, cfg.sensor_battery],
|
||||
'iL07_1': [cfg.binary_sensor_occupancy, cfg.binary_sensor_battery_low],
|
||||
'iL07_1': [cfg.binary_sensor_occupancy, cfg.binary_sensor_tamper, cfg.binary_sensor_battery_low],
|
||||
'S31 Lite zb': [cfg.switch],
|
||||
'LH-992ZB': [cfg.binary_sensor_occupancy, cfg.binary_sensor_battery_low],
|
||||
'548727': [cfg.light_brightness_colortemp_colorxy],
|
||||
|
||||
Reference in New Issue
Block a user