This commit is contained in:
Koen Kanters
2020-04-29 21:27:58 +02:00
parent 575e6fd4a3
commit dabc944cd3
+5 -5
View File
@@ -95,14 +95,14 @@ const cfg = {
device_class: 'safety',
},
},
'binary_sensor_router': {
'binary_sensor_led': {
type: 'binary_sensor',
object_id: 'router',
object_id: 'led',
discovery_payload: {
payload_on: true,
payload_off: false,
value_template: '{{ value_json.state }}',
device_class: 'connectivity',
value_template: '{{ value_json.led }}',
device_class: 'light',
},
},
'binary_sensor_battery_low': {
@@ -746,7 +746,7 @@ const mapping = {
'JTYJ-GD-01LM/BW': [cfg.binary_sensor_smoke, cfg.sensor_battery, cfg.sensor_sensitivity, cfg.sensor_smoke_density],
'PLUG EDP RE:DY': [cfg.switch, cfg.sensor_power],
'SWITCH EDP RE:DY': [cfg.switch],
'CC2530.ROUTER': [cfg.binary_sensor_router],
'CC2530.ROUTER': [cfg.binary_sensor_led],
'AA70155': [cfg.light_brightness_colortemp],
'A9A19A60WESDZ02': [cfg.light_brightness_colortemp],
'4058075816718': [cfg.light_brightness_colortemp_colorxy],