Browse Source

Fix mute test

Joachim M. Giæver 1 year ago
parent
commit
39a49fff17
1 changed files with 2 additions and 2 deletions
  1. 2 2
      automation/cast_lovelace_on_motion.yaml

+ 2 - 2
automation/cast_lovelace_on_motion.yaml

@@ -55,7 +55,7 @@ action:
                 Display {{ state_attr(repeat.item, "friendly_name") }} is ready for Lovelace «{{ dashboard_path }}/{{ dashboard_view }}».
           - variables:
               is_muted: "{{ is_state_attr(repeat.item, 'is_volume_muted', true) }}"
-          - if: "{{ is_muted }}"
+          - if: "{{ not is_muted }}"
             then:
             - service: media_player.volume_mute
               data:
@@ -67,7 +67,7 @@ action:
               entity_id: "{{ repeat.item }}"
               dashboard_path: "{{ dashboard_path }}"
               view_path: "{{ dashboard_view }}"
-          - if: "{{ is_muted }}"
+          - if: "{{ not is_muted }}"
             then:
             - wait_template: >-
                 {{ is_state_attr(repeat.item, 'app_name', 'Home Assistant Lovelace' ) }}