Inital Commit
This commit is contained in:
26
sensor/grocy.yaml
Normal file
26
sensor/grocy.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
- platform: rest
|
||||
name: Dog Motel Cleaning
|
||||
resource: !secret grocy_api_uri_chore3
|
||||
method: GET
|
||||
value_template: "{{ (((as_timestamp(value_json.next_estimated_execution_time))-as_timestamp(now())) | int /60/1440) | round(0) }}"
|
||||
json_attributes:
|
||||
- last_tracked
|
||||
- estimated_execution_time
|
||||
headers:
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
GROCY-API-KEY: !secret grocy_api_key
|
||||
unit_of_measurement: "Days"
|
||||
- platform: rest
|
||||
name: Red Bin Out
|
||||
resource: !secret grocy_api_uri_chore2
|
||||
method: GET
|
||||
value_template: "{{ (((as_timestamp(value_json.next_estimated_execution_time))-as_timestamp(now())) | int /60/1440) | round(0) }}"
|
||||
json_attributes:
|
||||
- last_tracked
|
||||
- estimated_execution_time
|
||||
headers:
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
GROCY-API-KEY: !secret grocy_api_key
|
||||
unit_of_measurement: "Days"
|
Reference in New Issue
Block a user