mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 18:11:36 +00:00
add direction sensor to AD for some dimmers (#4078)
This commit is contained in:
@@ -500,6 +500,14 @@ const cfg = {
|
||||
value_template: '{{ value_json.radiation_dose_per_hour }}',
|
||||
},
|
||||
},
|
||||
'sensor_direction': {
|
||||
type: 'sensor',
|
||||
object_id: 'direction',
|
||||
discovery_payload: {
|
||||
value_template: '{{ value_json.direction }}',
|
||||
icon: 'mdi:rotate-3d-variant',
|
||||
},
|
||||
},
|
||||
|
||||
// Light
|
||||
'light_brightness_colortemp_colorxy': {
|
||||
@@ -1597,7 +1605,7 @@ const mapping = {
|
||||
'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, cfg.sensor_action],
|
||||
'TERNCY-SD01': [cfg.sensor_click, cfg.sensor_battery, cfg.sensor_action, cfg.sensor_direction],
|
||||
'07048L': [cfg.switch, cfg.sensor_power],
|
||||
'ICZB-KPD14S': [cfg.sensor_battery, cfg.sensor_click, cfg.sensor_action],
|
||||
'73743': [cfg.sensor_action, cfg.sensor_battery],
|
||||
|
||||
Reference in New Issue
Block a user