mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-13 11:44:29 +05:00
ha scripts
fix bug and compatibility with older versions
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Script for reporting outdoor temperature to the controller from home assistant weather integration
|
# 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
|
alias: Report outdoor temp to controller from weather
|
||||||
description: ""
|
description: ""
|
||||||
@@ -15,7 +15,7 @@ trigger:
|
|||||||
seconds: /30
|
seconds: /30
|
||||||
condition:
|
condition:
|
||||||
- condition: template
|
- 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:
|
action:
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Script for reporting indoor/outdoor temperature to the controller from any home assistant sensor
|
# 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
|
alias: Report temp to controller
|
||||||
description: ""
|
description: ""
|
||||||
@@ -16,7 +16,7 @@ trigger:
|
|||||||
seconds: /30
|
seconds: /30
|
||||||
condition:
|
condition:
|
||||||
- condition: template
|
- 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:
|
action:
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
|
|||||||
Reference in New Issue
Block a user