add direction sensor to AD for some dimmers (#4078)

This commit is contained in:
blakadder
2020-08-12 17:22:05 +02:00
committed by GitHub
parent 763ae7903e
commit 3acd123ecd
+9 -1
View File
@@ -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],