-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added condition 'Current price is !{{|not}} among the X highest hou…
…rs before TIME' - Added condition 'Current price is !{{|not}} among the X lowest hours before TIME' - Added condition 'Current price is !{{|not}} among the X highest hours in the next Y hours' - Added condition 'Current price is !{{|not}} among the X lowest hours in the next Y hours'
- Loading branch information
Showing
12 changed files
with
410 additions
and
14 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
42 changes: 42 additions & 0 deletions
42
.homeycompose/flow/conditions/current_price_among_x_highest_before_time.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,42 @@ | ||
{ | ||
"id": "current_price_among_x_highest_before_time", | ||
"title": { | ||
"en": "Current price is !{{|not}} among the X highest hours before" | ||
}, | ||
"titleFormatted": { | ||
"en": "Current price is !{{|not}} among the [[num_hours]] highest hours before [[time]]" | ||
}, | ||
"hint": { | ||
"en": "Condition to check if the current price is among the X highest hours before a time of day." | ||
}, | ||
"args": [ | ||
{ | ||
"name": "device", | ||
"type": "device", | ||
"filter": "driver_id=HeatingController" | ||
}, | ||
{ | ||
"name": "num_hours", | ||
"type": "number", | ||
"min": 1, | ||
"max": 23, | ||
"step": 1, | ||
"title": { | ||
"en": "High hours" | ||
}, | ||
"placeholder": { | ||
"en": "High hours" | ||
} | ||
}, | ||
{ | ||
"name": "time", | ||
"type": "time", | ||
"title": { | ||
"en": "Hour" | ||
}, | ||
"placeholder": { | ||
"en": "04:00" | ||
} | ||
} | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
.homeycompose/flow/conditions/current_price_among_x_highest_next_y_hours.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,45 @@ | ||
{ | ||
"id": "current_price_among_x_highest_next_y_hours", | ||
"title": { | ||
"en": "Current price is !{{|not}} among the X highest hours in the next Y hours" | ||
}, | ||
"titleFormatted": { | ||
"en": "Current price is !{{|not}} among the [[num_hours]] highest hours in the next [[next_hours]] hours" | ||
}, | ||
"hint": { | ||
"en": "Condition to check if the current price is among the X highest hours the next Y hours." | ||
}, | ||
"args": [ | ||
{ | ||
"name": "device", | ||
"type": "device", | ||
"filter": "driver_id=HeatingController" | ||
}, | ||
{ | ||
"name": "num_hours", | ||
"type": "number", | ||
"min": 1, | ||
"max": 23, | ||
"step": 1, | ||
"title": { | ||
"en": "High hours" | ||
}, | ||
"placeholder": { | ||
"en": "High hours" | ||
} | ||
}, | ||
{ | ||
"name": "next_hours", | ||
"type": "number", | ||
"min": 1, | ||
"max": 23, | ||
"step": 1, | ||
"title": { | ||
"en": "Hours" | ||
}, | ||
"placeholder": { | ||
"en": "Hours" | ||
} | ||
} | ||
] | ||
} |
42 changes: 42 additions & 0 deletions
42
.homeycompose/flow/conditions/current_price_among_x_lowest_before_time.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,42 @@ | ||
{ | ||
"id": "current_price_among_x_lowest_before_time", | ||
"title": { | ||
"en": "Current price is !{{|not}} among the X lowest hours before" | ||
}, | ||
"titleFormatted": { | ||
"en": "Current price is !{{|not}} among the [[num_hours]] lowest hours before [[time]]" | ||
}, | ||
"hint": { | ||
"en": "Condition to check if the current price is among the X lowest hours before a time of day." | ||
}, | ||
"args": [ | ||
{ | ||
"name": "device", | ||
"type": "device", | ||
"filter": "driver_id=HeatingController" | ||
}, | ||
{ | ||
"name": "num_hours", | ||
"type": "number", | ||
"min": 1, | ||
"max": 23, | ||
"step": 1, | ||
"title": { | ||
"en": "Low hours" | ||
}, | ||
"placeholder": { | ||
"en": "Low hours" | ||
} | ||
}, | ||
{ | ||
"name": "time", | ||
"type": "time", | ||
"title": { | ||
"en": "Hour" | ||
}, | ||
"placeholder": { | ||
"en": "04:00" | ||
} | ||
} | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
.homeycompose/flow/conditions/current_price_among_x_lowest_next_y_hours.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,45 @@ | ||
{ | ||
"id": "current_price_among_x_lowest_next_y_hours", | ||
"title": { | ||
"en": "Current price is !{{|not}} among the X lowest hours in the next Y hours" | ||
}, | ||
"titleFormatted": { | ||
"en": "Current price is !{{|not}} among the [[num_hours]] lowest hours in the next [[next_hours]] hours" | ||
}, | ||
"hint": { | ||
"en": "Condition to check if the current price is among the X lowest hours the next Y hours." | ||
}, | ||
"args": [ | ||
{ | ||
"name": "device", | ||
"type": "device", | ||
"filter": "driver_id=HeatingController" | ||
}, | ||
{ | ||
"name": "num_hours", | ||
"type": "number", | ||
"min": 1, | ||
"max": 23, | ||
"step": 1, | ||
"title": { | ||
"en": "Low hours" | ||
}, | ||
"placeholder": { | ||
"en": "Low hours" | ||
} | ||
}, | ||
{ | ||
"name": "next_hours", | ||
"type": "number", | ||
"min": 1, | ||
"max": 23, | ||
"step": 1, | ||
"title": { | ||
"en": "Hours" | ||
}, | ||
"placeholder": { | ||
"en": "Hours" | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.