mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Add ICTC-G-1 homeassistant mapping.
This commit is contained in:
@@ -127,6 +127,16 @@ const configurations = {
|
||||
json_attributes: ['battery', 'voltage', 'angle', 'side', 'from_side', 'to_side'],
|
||||
},
|
||||
},
|
||||
'sensor_brightness': {
|
||||
type: 'sensor',
|
||||
object_id: 'brightness',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'brightness',
|
||||
icon: 'mdi:brightness-5',
|
||||
value_template: '{{ value_json.brightness }}',
|
||||
json_attributes: [],
|
||||
},
|
||||
},
|
||||
|
||||
// Light
|
||||
'light_brightness_colortemp_xy': {
|
||||
@@ -246,6 +256,7 @@ const mapping = {
|
||||
'73742': [configurations.light_brightness_colortemp],
|
||||
'73740': [configurations.light_brightness_colortemp],
|
||||
'22670': [configurations.light_brightness],
|
||||
'ICTC-G-1': [configurations.sensor_brightness],
|
||||
};
|
||||
|
||||
// A map of all discoverd devices
|
||||
|
||||
Generated
+3
-3
@@ -2810,9 +2810,9 @@
|
||||
}
|
||||
},
|
||||
"zigbee-shepherd-converters": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.0.tgz",
|
||||
"integrity": "sha512-GtQKwU0AD7os51bPdFLcunGvSt7c2kxrwEf+szGInGFwA5hibVgoXvLhFA0t8C8bRlxqy2FcXQDblS6i8LogiA==",
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/zigbee-shepherd-converters/-/zigbee-shepherd-converters-2.0.1.tgz",
|
||||
"integrity": "sha512-tRDz0coiYcwILaJb1jIN4c3+OKP49MmYTClaNdW6fgTYKbJsjVou4PiJ7IX87LKBF+EnCp/d2K9gN2BNZ7xeuw==",
|
||||
"requires": {
|
||||
"debounce": "1.1.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user