Compare commits

...

2 Commits

Author SHA1 Message Date
claus 66b69199d6 Vi dropper den for nu 2026-03-15 18:53:47 +01:00
claus 0cdfc2b1ee fejl i log 2026-03-15 18:50:17 +01:00
2 changed files with 1 additions and 139 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
- platform: template
sensors:
living_room_tv_source:
value_template: '{{ states.media_player.stue_2.attributes["source"] }}'
value_template: '{{ state_attr('media_player.stue_2','source') | default('unknown') }}'
friendly_name: 'Living Room TV Source'
-138
View File
@@ -1,138 +0,0 @@
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day0
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ now().strftime('%Y-%m-%d') }}
limit: >
{{ now().strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Tomorrow
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day1
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ (now() + timedelta(days = 1)).strftime('%Y-%m-%d') }}
limit: >
{{ (now() + timedelta(days = 1)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 2
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day2
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ (now() + timedelta(days = 2)).strftime('%Y-%m-%d') }}
limit: >
{{ (now() + timedelta(days = 2)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 3
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day3
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ (now() + timedelta(days = 3)).strftime('%Y-%m-%d') }}
limit: >
{{ (now() + timedelta(days = 3)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 4
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day4
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ (now() + timedelta(days = 4)).strftime('%Y-%m-%d') }}
limit: >
{{ (now() + timedelta(days = 4)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 5
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day5
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ (now() + timedelta(days = 5)).strftime('%Y-%m-%d') }}
limit: >
{{ (now() + timedelta(days = 5)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"
# Day 6
- platform: rest
resource: !secret mealie_api_URL_mealplan
name: mealie_mealplan_day6
scan_interval: 900
headers:
Authorization: ClausMealieHA !secret mealie_api_token
params:
start: >
{{ (now() + timedelta(days = 6)).strftime('%Y-%m-%d') }}
limit: >
{{ (now() + timedelta(days = 6)).strftime('%Y-%m-%d') }}
json_attributes_path: "$.[0].recipe"
json_attributes:
- id
- name
- slug
- image
value_template: "{{ value_json.date }}"