Add requested_brightness_level and requested_brightness_percent Home Assistant sensor for IKEA E1745. #3535

This commit is contained in:
Koen Kanters 2020-05-12 17:53:45 +02:00
parent 520f59f47c
commit cb64a865d9

View File

@ -406,6 +406,22 @@ const cfg = {
icon: 'mdi:weight',
},
},
'sensor_requested_brightness_level': {
type: 'sensor',
object_id: 'requested_brightness_level',
discovery_payload: {
value_template: '{{ value_json.requested_brightness_level }}',
icon: 'mdi:brightness-5',
},
},
'sensor_requested_brightness_percent': {
type: 'sensor',
object_id: 'requested_brightness_percent',
discovery_payload: {
value_template: '{{ value_json.requested_brightness_percent }}',
icon: 'mdi:brightness-5',
},
},
// Light
'light_brightness_colorxy_white': {
@ -1013,7 +1029,10 @@ const mapping = {
cfg.sensor_local_temperature,
cfg.lock_keypad_lockout,
],
'E1525/E1745': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
'E1525/E1745': [
cfg.binary_sensor_occupancy, cfg.sensor_battery, cfg.sensor_requested_brightness_level,
cfg.sensor_requested_brightness_percent,
],
'ZYCT-202': [cfg.sensor_action],
'GR-ZB01-W': [cfg.cover_position],
'4090531P7': [cfg.light_brightness_colortemp_colorxy],