-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
748 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Time | ||
|
||
A node that can be scheduled to trigger at a future date and time from a Home Assistant entity. | ||
|
||
## Configuration | ||
|
||
### Entity Id | ||
|
||
- Type: `string` | ||
|
||
A Home Assistant entity to be used when scheduling the node. | ||
|
||
### Property | ||
|
||
- Type: `string` | ||
|
||
Which property of the entity to use to schedule the node. | ||
|
||
The node will accept any date string that the javascript object accepts as a valid date. It will also accept a 24-hour time format with the seconds place optional. | ||
|
||
examples: | ||
|
||
- <code>2020-12-31T02:47:54.837Z</code> | ||
- <code>1609382842709</code> | ||
- <code>13:40</code> | ||
- <code>23:59:02</code> | ||
|
||
### Offset | ||
|
||
- Type: `number` | ||
|
||
A negative or positive number that will be added to the scheduled time. | ||
|
||
### Randomize time within the offset | ||
|
||
- Type: `boolean` | ||
|
||
When selected the time to trigger will be random selected from the scheduled time to the +/- offset. | ||
|
||
### Payload | ||
|
||
- Type: `string | number | boolean | object` | ||
|
||
The payload is fully customizable. The default will be a JSONata expression that outputs the entity state. | ||
|
||
### Repeat Daily | ||
|
||
- Type: `boolean` | ||
|
||
If selected the node will only use the time portion of the date string to schedule the node and will trigger at that time each day. Otherwise, the node will only trigger once at the given day and time. | ||
|
||
## Outputs | ||
|
||
### topic | ||
|
||
- Type: `string` | ||
|
||
The entity id in the configuration. | ||
|
||
### payload | ||
|
||
- Type: `string | number | boolean | object` | ||
|
||
### data | ||
|
||
- Type: `object` | ||
|
||
The entity object of the entity in the configuration. |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// eslint-disable-next-line no-unused-vars, no-var | ||
var ha = (function () { | ||
const nodeColors = { | ||
action: '#46B1EF', | ||
alpha: '#E78BB9', | ||
api: '#7CDFFD', | ||
beta: '#77DD77', | ||
data: '#5BCBF7', | ||
event: '#399CDF', | ||
}; | ||
|
||
return { | ||
nodeColors, | ||
}; | ||
})(); |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"ha-time": { | ||
"errors": { | ||
"invalid_jsonata_payload": "Invalid jsonata sending entity state as payload", | ||
"jsonata_error": "JSONata Error: __message__", | ||
"offset_nan": "Offset is not a number: __offset__" | ||
}, | ||
"status": { | ||
"in_the_past": "In the past", | ||
"invalid_date": "Invalid date", | ||
"invalid_property": "Invalid property", | ||
"next_at": "Next at __nextTime__", | ||
"sent": "Sent", | ||
"sent_and_next": "Sent at __sentTime__ Next at __nextTime__", | ||
"unavailable": "Unavailable", | ||
"error": "Error" | ||
}, | ||
"label": { | ||
"name": "Name", | ||
"server": "Server", | ||
"entity_id": "Entity Id", | ||
"property": "Property", | ||
"offset": "Offset", | ||
"seconds": "seconds", | ||
"minutes": "minutes", | ||
"hours": "hours", | ||
"randomize_offset": "Randomize time within the offset", | ||
"payload": "Payload", | ||
"repeat_daily": "Repeat Daily" | ||
} | ||
} | ||
} |
Oops, something went wrong.