-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement dynamic sub profile selection
- Loading branch information
1 parent
9751f66
commit 253818b
Showing
14 changed files
with
227 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
from homeassistant.const import ( | ||
CONF_ENTITY_ID, | ||
STATE_OFF, | ||
STATE_ON, | ||
STATE_PAUSED, | ||
STATE_PLAYING, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+13 KB
tests/testing_config/powercalc_profiles/infrared_light/infrared_50/hs.csv.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
tests/testing_config/powercalc_profiles/infrared_light/infrared_50/model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"standby_power": 4.36 | ||
} |
Binary file added
BIN
+12.8 KB
tests/testing_config/powercalc_profiles/infrared_light/infrared_off/hs.csv.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
tests/testing_config/powercalc_profiles/infrared_light/infrared_off/model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"standby_power": 0.47 | ||
} |
30 changes: 30 additions & 0 deletions
30
tests/testing_config/powercalc_profiles/infrared_light/model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"measure_description": "Measured with utils/measure script. TP-link kp125 was having inconsistent readings towards the 0.52 watt and lower range, so I manually smoothed out some of the outliers", | ||
"measure_device": "TP-Link KP125", | ||
"measure_method": "script", | ||
"measure_settings": { | ||
"SAMPLE_COUNT": 2, | ||
"SLEEP_TIME": 2, | ||
"VERSION": "v0.19.12:docker" | ||
}, | ||
"name": "LIFX A19 Night Vision", | ||
"standby_power": 0.47, | ||
"supported_modes": [ | ||
"lut" | ||
], | ||
"sub_profile_select": { | ||
"matchers": [ | ||
{ | ||
"type": "attribute", | ||
"attribute": "infrared_brightness", | ||
"map": { | ||
"Disabled": "infrared_off", | ||
"25%": "infrared_25", | ||
"50%": "infrared_50", | ||
"100%": "infrared_100" | ||
} | ||
} | ||
], | ||
"default": "infrared_off" | ||
} | ||
} |