ha scripts

fix bug and compatibility with older versions
This commit is contained in:
Yurii
2023-12-07 21:26:16 +03:00
parent 5bdc28675f
commit 03aeaa9441
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# Script for reporting outdoor temperature to the controller from home assistant weather integration
# Updated: 28.11.2023
# Updated: 07.12.2023
alias: Report outdoor temp to controller from weather
description: ""
@@ -15,7 +15,7 @@ trigger:
seconds: /30
condition:
- condition: template
value_template: "{{ has_value(source_entity) and has_value(target_entity) }}"
value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}"
action:
- if:
- condition: template

View File

@@ -1,5 +1,5 @@
# Script for reporting indoor/outdoor temperature to the controller from any home assistant sensor
# Updated: 28.11.2023
# Updated: 07.12.2023
alias: Report temp to controller
description: ""
@@ -16,7 +16,7 @@ trigger:
seconds: /30
condition:
- condition: template
value_template: "{{ has_value(source_entity) and has_value(target_entity) }}"
value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}"
action:
- if:
- condition: template