Merge pull request #334 from deejaybeam/dev
fix: apply climate-settings
This commit is contained in:
@@ -4949,7 +4949,7 @@ action:
|
|||||||
#hvac_mode: 'heat'
|
#hvac_mode: 'heat'
|
||||||
temperature: "{{ new_setpoint }}"
|
temperature: "{{ new_setpoint }}"
|
||||||
|
|
||||||
#### Page Climate - Close Climate Page ##### TODO
|
#### Page Climate - Close Climate Page #####
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ trigger.event.data.new_state.state == "releaseclimateclose" }}'
|
value_template: '{{ trigger.event.data.new_state.state == "releaseclimateclose" }}'
|
||||||
@@ -5259,6 +5259,26 @@ action:
|
|||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: current_page_changed
|
id: current_page_changed
|
||||||
sequence:
|
sequence:
|
||||||
|
##### climate-page left - apply climate temperature if climate_optimistic ##### ## TODO - remove from here
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.event.data.old_state.state == page_climate }}'
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ climate_optimistic == true }}'
|
||||||
|
then:
|
||||||
|
- variables:
|
||||||
|
display_target_temperature: "{{states(display_target_temperature) | round(1)}}"
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ display_target_temperature != 0.0 }}'
|
||||||
|
then:
|
||||||
|
- service: climate.set_temperature
|
||||||
|
data:
|
||||||
|
entity_id: '{{ entity_long }}'
|
||||||
|
#hvac_mode: 'heat'
|
||||||
|
temperature: "{{ display_target_temperature }}"
|
||||||
- choose:
|
- choose:
|
||||||
## PAGE HOME ##
|
## PAGE HOME ##
|
||||||
- conditions: '{{ trigger.event.data.new_state.state == page_home }}'
|
- conditions: '{{ trigger.event.data.new_state.state == page_home }}'
|
||||||
@@ -5467,27 +5487,6 @@ action:
|
|||||||
data:
|
data:
|
||||||
cmd: home.icon_top_02.pic={{ relay02_pic }}
|
cmd: home.icon_top_02.pic={{ relay02_pic }}
|
||||||
|
|
||||||
##### climate-page left - apply climate temperature if climate_optimistic ##### ## TODO - remove from here
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: '{{ trigger.event.data.old_state.state == page_climate }}'
|
|
||||||
then:
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: '{{ climate_optimistic == true }}'
|
|
||||||
then:
|
|
||||||
- variables:
|
|
||||||
display_target_temperature: "{{states(display_target_temperature) | round(1)}}"
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: '{{ display_target_temperature != 0.0 }}'
|
|
||||||
then:
|
|
||||||
- service: climate.set_temperature
|
|
||||||
data:
|
|
||||||
entity_id: !input climate
|
|
||||||
#hvac_mode: 'heat'
|
|
||||||
temperature: "{{ display_target_temperature }}"
|
|
||||||
|
|
||||||
##### Set notify icon #####
|
##### Set notify icon #####
|
||||||
- variables:
|
- variables:
|
||||||
notify_pic: >-
|
notify_pic: >-
|
||||||
|
|||||||
Reference in New Issue
Block a user