27 lines
887 B
YAML
27 lines
887 B
YAML
- 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"
|