Tsar
(Christian)
December 18, 2024, 6:10am
1
Hello,
I don’t understand something…
I have 2 air conditioners that are switched on via automation at 6 o’clock in the morning. In this automation, a script is called (after switching on the air conditioning) to adjust the ventilation speed.
It seems that this does not happen for the air conditioning in the living room (given that the speed of the air conditioning is wrong), but when I look at the traces I notice something strange. The script is indeed called in the automation, but I don’t see a trace of this in the script itself? This works well with the air conditioning in the hallway (which are exactly the same routines).
Any ideas?
This is the hallway and is OK :
This is de living room and is not OK :
No trace at 6am ???
Troon
(Troon)
December 18, 2024, 7:25am
2
Please post the full, correctly-formatted YAML for the automation. We can’t diagnose off screenshots.
Tsar
(Christian)
December 18, 2024, 7:46am
3
alias: >-
Airco living inschakelen/uitschakelen/temperatuur verhogen/temperatuur
verlagen
description: ""
triggers:
- at: input_datetime.tijdstip_airco_living_s_morgens_inschakelen
id: inschakelen 's morgens
trigger: time
- at: input_datetime.tijdstip_airco_living_s_morgens_uitschakelen
id: uitschakelen 's morgens
trigger: time
- at: input_datetime.tijdstip_airco_living_s_avonds_inschakelen
id: inschakelen 's avonds
trigger: time
- at: input_datetime.tijdstip_airco_living_s_avonds_uitschakelen
id: uitschakelen 's avonds
trigger: time
- at: input_datetime.tijdstip_airco_living_temperatuur_verlagen
id: temperatuur verlagen
trigger: time
- at: input_datetime.tijdstip_airco_living_temperatuur_verhogen
id: temperatuur verhogen
trigger: time
conditions:
- condition: state
entity_id: input_boolean.toggle_airco_living_actief
state: "on"
actions:
- choose:
- conditions:
- condition: trigger
id: inschakelen 's morgens
- condition: state
entity_id: input_boolean.toggle_op_vakantie
state: "off"
- condition: state
entity_id: >-
input_boolean.toggle_airco_living_s_morgens_inschakelen_op_vast_tijdstip
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ states('sensor.temperature_indoor') |float(0) >=
states('input_number.number_airco_living_s_morgens_op_vast_tijdstip_inschakelen_indien_onder_temperatuur')
|float(0) }}
alias: Is het te koud ?
then:
- alias: Nee
if:
- condition: state
entity_id: climate.airco_living
state: "off"
then:
- data:
titel: Airco living
boodschap: >-
Airco living werd niet ingeschakeld op {{
states('input_number.number_temperatuur_airco_living_s_morgens')
}}°C op {{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }}
wegens reeds te warm
({{states('sensor.temperature_indoor')}}°C >=
{{states('input_number.number_airco_living_s_morgens_op_vast_tijdstip_inschakelen_indien_onder_temperatuur')}}°C)
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: >-
Opgelet ! Airco living werd niet ingeschakeld wegens
reeds te warm.
action: script.berichten
else:
- data:
titel: Airco living
boodschap: >-
Airco living staat reeds ingeschakeld op {{
state_attr('climate.airco_living','temperature') }}°C op
{{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }} en werd
niet verhoogd naar {{
states('input_number.number_temperatuur_airco_living_s_morgens')}}°C
gezien reeds te warm
({{states('sensor.temperature_indoor')}}°C >=
{{states('input_number.number_airco_living_s_morgens_op_vast_tijdstip_inschakelen_indien_onder_temperatuur')}}°C)
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: >-
Opgelet ! Airco living staat reeds ingeschakeld terwijl
te warm !
action: script.berichten
else:
- alias: Ja
if:
- condition: state
entity_id: climate.airco_living
state: "off"
then:
- data:
temperature: >
{{
states('input_number.number_temperatuur_airco_living_s_morgens')}}
entity_id: climate.airco_living
hvac_modus: heat
auto_on: "on"
fan_mode: default
action: script.airco_x_op_y_graden
- action: >-
script.aanpassen_ventilatorsnelheid_airco_living_volgens_schedules
metadata: {}
data: {}
- data:
titel: Airco living
boodschap: >-
Airco living werd ingeschakeld op {{
states('input_number.number_temperatuur_airco_living_s_morgens')
}}°C op {{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }}
({{states('sensor.temperature_indoor')}}°C <
{{states('input_number.number_airco_living_s_morgens_op_vast_tijdstip_inschakelen_indien_onder_temperatuur')}}°C)
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: Opgelet ! Airco living werd ingeschakeld.
action: script.berichten
else:
- data:
temperature: >
{{
states('input_number.number_temperatuur_airco_living_s_morgens')}}
entity_id: climate.airco_living
hvac_modus: heat
auto_on: "off"
fan_mode: default
action: script.airco_x_op_y_graden
- data:
titel: Airco living
boodschap: >-
Temperatuur Airco living werd verhoogd naar {{
states('input_number.number_temperatuur_airco_living_s_morgens')
}}°C op {{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }}
({{states('sensor.temperature_indoor')}}°C <
{{states('input_number.number_airco_living_s_morgens_op_vast_tijdstip_inschakelen_indien_onder_temperatuur')}}°C)
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: Opgelet ! Airco living werd ingeschakeld.
action: script.berichten
alias: Airco living 's morgens inschakelen
- conditions:
- condition: trigger
id: inschakelen 's avonds
- condition: state
entity_id: input_boolean.toggle_op_vakantie
state: "off"
- condition: state
entity_id: input_boolean.toggle_airco_living_s_avonds_inschakelen
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ states('sensor.temperature_indoor') |float(0) >=
states('input_number.number_airco_living_s_avonds_inschakelen_indien_onder_temperatuur')
|float(0) }}
then:
- if:
- condition: state
entity_id: climate.airco_living
state: "off"
then:
- data:
titel: Airco living
boodschap: >-
Airco living niet ingeschakeld op {{
states('input_number.number_temperatuur_airco_living_s_avonds')
}}°C op {{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }}
wegens reeds te warm
({{states('sensor.temperature_indoor')}}°C >=
{{states('input_number.number_airco_living_s_avonds_inschakelen_indien_onder_temperatuur')}}°C)
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: >-
Opgelet ! Airco living werd niet ingeschakeld wegens
reeds te warm.
action: script.berichten
else:
- data:
titel: Airco living
boodschap: >-
Airco living staat reeds ingeschakeld op {{
state_attr('climate.airco_living','temperature') }}°C op
{{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }} terwijl
reeds te warm ({{states('sensor.temperature_indoor')}}°C
>=
{{states('input_number.number_airco_living_s_avonds_inschakelen_indien_onder_temperatuur')}}°C)
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: >-
Opgelet ! Airco living staat ingeschakeld terwijl te
warm !
action: script.berichten
else:
- if:
- condition: state
entity_id: climate.airco_living
state: "off"
then:
- data:
temperature: >
{{
states('input_number.number_temperatuur_airco_living_s_avonds')}}
entity_id: climate.airco_living
hvac_modus: heat
auto_on: "on"
fan_mode: default
action: script.airco_x_op_y_graden
- action: >-
script.aanpassen_ventilatorsnelheid_airco_living_volgens_schedules
metadata: {}
data: {}
- data:
titel: Airco living
boodschap: >-
Airco living werd ingeschakeld op {{
states('input_number.number_temperatuur_airco_living_s_avonds')
}}°C op {{ now().strftime("%d/%-m/%-Y om %H:%M:%S") }}
(update {{
as_timestamp(states.sensor['temperature_sensor_living_temperature'].last_updated)
| timestamp_custom("%d/%m/%Y %H:%M:%S")}}).
notificatie: false
mail: true
tts: false
tts_boodschap: Opgelet ! Airco living werd ingeschakeld.
action: script.berichten
else:
- if:
- condition: template
value_template: >-
{{
state_attr('climate.airco_living','temperature')|float(0)
!=
states('input_number.number_temperatuur_airco_living_s_avonds')|float(0)
}}
then:
- data:
temperature: >
{{
states('input_number.number_temperatuur_airco_living_s_avonds')}}
entity_id: climate.airco_living
hvac_modus: heat
auto_on: "off"
fan_mode: default
action: script.airco_x_op_y_graden
- data:
titel: Airco living
boodschap: >-
Temperatuur van de airco living werd gewijzigd van {{
state_attr('climate.airco_living','temperature') }} naar
{{
states('input_number.number_temperatuur_airco_living_s_avonds')
}}°C op {{now().strftime("%d/%-m/%-Y om %H:%M:%S") }}.
notificatie: false
mail: true
tts: false
tts_boodschap: >-
Opgelet ! Temperatuur van de airco living werd
aangepast.
action: script.berichten
alias: Airco living 's avonds inschakelen
- conditions:
- condition: trigger
id: uitschakelen 's morgens
- condition: state
entity_id: input_boolean.toggle_airco_living_s_morgens_uitschakelen
state: "on"
sequence:
- data: {}
target:
entity_id: climate.airco_living
action: climate.turn_off
alias: Airco living 's morgens uitschakelen
- conditions:
- condition: trigger
id: uitschakelen 's avonds
- condition: state
entity_id: input_boolean.toggle_airco_living_s_avonds_uitschakelen
state: "on"
sequence:
- data: {}
target:
entity_id: climate.airco_living
action: climate.turn_off
alias: Airco living 's avonds uitschakelen
- conditions:
- condition: trigger
id:
- temperatuur verlagen
- condition: state
entity_id: input_boolean.toggle_airco_living_temperatuur_verlagen
state: "on"
alias: Moet de temperatuur verlaagd worden ?
- condition: state
entity_id: input_boolean.toggle_op_vakantie
state: "off"
sequence:
- choose:
- conditions:
- condition: state
entity_id: climate.airco_living
state: heat
alias: Staat de airco weldegelijk op verwarmen ?
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','temperature') !=
states('input_number.number_airco_living_temperatuur_verlagen')}}
alias: Is de temperatuur niet reeds ingesteld ?
sequence:
- data:
temperature: >
{{
states('input_number.number_airco_living_temperatuur_verlagen')}}
entity_id: climate.airco_living
hvac_modus: heat
auto_on: "off"
fan_mode: default
action: script.airco_x_op_y_graden
default: []
alias: Verlagen van temperatuur
- conditions:
- condition: trigger
id:
- temperatuur verhogen
- condition: state
entity_id: input_boolean.toggle_airco_living_temperatuur_verhogen
state: "on"
alias: Moet de temperatuur verhoogd worden ?
- condition: state
entity_id: input_boolean.toggle_op_vakantie
state: "off"
sequence:
- choose:
- conditions:
- condition: state
entity_id: climate.airco_living
state: heat
alias: Staat de airco weldegelijk op verwarmen ?
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','temperature') !=
states('input_number.number_airco_living_temperatuur_verhogen')}}
alias: Is de temperatuur niet reeds ingesteld ?
then:
- data:
temperature: >
{{
states('input_number.number_airco_living_temperatuur_verhogen')}}
entity_id: climate.airco_living
hvac_modus: heat
auto_on: "off"
fan_mode: default
action: script.airco_x_op_y_graden
else:
- data:
titel: Airco living
boodschap: >-
Airco living staat reeds ingeschakeld op {{
state_attr('climate.airco_living','temperature')
}}°C op {{ now().strftime("%d/%-m/%-Y om %H:%M:%S")
}} .
notificatie: false
mail: true
tts: false
tts_boodschap: Opgelet ! Airco living staat reeds ingeschakeld.
action: script.berichten
default: []
alias: Verhogen van temperatuur
default: []
mode: queued
max: 10
alias: Aanpassen ventilatorsnelheid airco living volgens schedules
sequence:
- alias: Eventueel aanpassen ventilatorsnelheid is
if:
- condition: not
conditions:
- condition: state
entity_id: climate.airco_living
state: "off"
alias: Staat de airco aan ?
then:
- alias: Ventilatorsnelheid op maximum indien niemand thuis is
if:
- condition: or
conditions:
- condition: state
entity_id: group.group_my_people
state: "off"
alias: Niemand thuis ?
- condition: and
conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_1
state: "off"
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_2
state: "off"
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_3
state: "off"
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_4
state: "off"
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_5
state: "off"
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_auto
state: "off"
alias: Geen ventilatorsnelheid bepaald ?
- condition: state
entity_id: input_boolean.toggle_iedereen_is_in_bed
state: "on"
alias: Iedereen is nog in bed ?
then:
- alias: Ventilatorsnelheid aanpassen naar maximum
if:
- condition: template
value_template: "{{ state_attr('climate.airco_living','fan_mode') != '5' }} "
alias: Staat de airco niet op maximum ?
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "5"
target:
entity_id: climate.airco_living
else:
- choose:
- conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_1
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','fan_mode') !=
'1' }}
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "1"
target:
entity_id: climate.airco_living
- conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_2
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','fan_mode') !=
'2' }}
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "2"
target:
entity_id: climate.airco_living
- conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_3
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','fan_mode') !=
'3' }}
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "3"
target:
entity_id: climate.airco_living
- conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_4
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','fan_mode') !=
'4' }}
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "4"
target:
entity_id: climate.airco_living
- conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_5
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','fan_mode') !=
'5' }}
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "5"
target:
entity_id: climate.airco_living
- conditions:
- condition: state
entity_id: schedule.schedule_airco_living_fan_mode_auto
state: "on"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.airco_living','fan_mode') !=
'auto' }}
then:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: auto
target:
entity_id: climate.airco_living
default:
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: "5"
target:
entity_id: climate.airco_living
description: ""
mode: queued
max: 10
Troon
(Troon)
December 18, 2024, 8:04am
4
Observations that might hopefully help you work out what’s going on…
Your first screenshot shows you calling the living room script (airco_living
) from the hallway automation, but the second screenshot is the hall script (airco_gang
)?!
Both automations are calling the same script at the same time. Queuing? How long does the script take to run?
Would you expect the script to also be executed at 06:26?
Tsar
(Christian)
December 18, 2024, 8:39am
5
Thanks, forgot to change that