Skip to content

Commit

Permalink
Add longpush sensors for Dimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu committed Mar 16, 2020
1 parent 7932073 commit f53822d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python_scripts/shellies_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
ATTR_LIGHT = "light"
ATTR_LOADERROR = "loaderror"
ATTR_LONGPUSH = "longpush"
ATTR_LONGPUSH_0 = "longpush/0"
ATTR_LONGPUSH_1 = "longpush/1"
ATTR_LUX = "lux"
ATTR_MOISTURE = "moisture"
ATTR_MOTION = "motion"
Expand Down Expand Up @@ -319,9 +321,11 @@
ATTR_LOADERROR,
ATTR_INPUT_0,
ATTR_INPUT_1,
ATTR_LONGPUSH_0,
ATTR_LONGPUSH_1,
]
bin_sensors_classes = [ATTR_HEAT, ATTR_POWER, ATTR_PROBLEM, None, None]
bin_sensors_pl = [PL_1_0, PL_1_0, PL_1_0, PL_1_0, PL_1_0]
bin_sensors_classes = [ATTR_HEAT, ATTR_POWER, ATTR_PROBLEM, None, None, None, None]
bin_sensors_pl = [PL_1_0, PL_1_0, PL_1_0, PL_1_0, PL_1_0, PL_1_0, PL_1_0]
lights_sensors = [ATTR_POWER, ATTR_ENERGY]
lights_sensors_units = [UNIT_WATT, UNIT_KWH]
lights_sensors_classes = [ATTR_POWER, ATTR_POWER]
Expand Down

0 comments on commit f53822d

Please sign in to comment.