mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-12 06:38:53 +00:00
CC2530.router: state -> led. https://github.com/Koenkk/zigbee2mqtt/issues/3414
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user