Compare commits

...

2 Commits

Author SHA1 Message Date
claus 8f0fd476c6 moved to template 2026-03-15 18:58:32 +01:00
claus 7f081cf997 ny fil 2026-03-15 18:57:59 +01:00
2 changed files with 4 additions and 5 deletions
-5
View File
@@ -1,5 +0,0 @@
- platform: template
sensors:
living_room_tv_source:
value_template: '{{ state_attr('media_player.stue_2','source') | default('unknown') }}'
friendly_name: 'Living Room TV Source'
+4
View File
@@ -0,0 +1,4 @@
- sensor:
- name: "Living Room TV Source"
state: >
{{ state_attr('media_player.stue_2','source') | default('unknown', true) }}