that’s it. I think it will work now.
Thanks!
@123
very useful what you told me. I set it up and I can see what is wrong. I was wondering all the time how I could do that, but never asked
Thanks
that’s it. I think it will work now.
Thanks!
@123
very useful what you told me. I set it up and I can see what is wrong. I was wondering all the time how I could do that, but never asked
Thanks
The following wants state
to be the boolean value true
(a boolean is either true
or false
)
state: true
However, the state
of all entities is always a string. By wrapping the word true
in quotes, you are indicating it is not a boolean value true
but a string value 'true'
. That’s why this works:
state: 'true'
I have the same error, but no clue on solving it:
## Dettagli registro (ERROR)
Logger: homeassistant.config
Source: config.py:404
First occurred: 11:13:45 (1 occurrences)
Last logged: 11:13:45
Invalid config for [automation]: (See ?, line ?)
Nor do we, with the information provided. Please post your automations.yaml
(correctly formatted, looks like you already know how ).
- id: '1543180787650'
alias: Accendi automaticamente luce studio
trigger:
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 0
seconds: 1
platform: device
type: motion
condition:
- condition: state
entity_id: light.yeelight_lampada_studio
state: 'off'
- below: '40'
condition: numeric_state
entity_id: sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_illuminance
- condition: state
entity_id: light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_400lm_658a05fe_level_light_color_on_off
state: 'off'
- condition: template
value_template: '{{ states.sensor.steam_76561197969984581.attributes.game == NULL
}}'
action:
- data_template:
brightness_pct: '{{ states.input_number.luminosita_automatica.state | int }}'
entity_id: light.yeelight_lampada_studio
kelvin: '{{ states.input_number.freddezza_automatica.state | int }}'
service: light.turn_on
- id: '1543183869291'
alias: Spegni luce studio senza movimento
trigger:
- device_id: eaa95766a43e4925a0df9dfcba3bf9bc
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_occupancy
for:
hours: 0
minutes: 5
seconds: 0
platform: device
type: not_occupied
condition:
- condition: state
entity_id: light.tutte_luci_studio
state: 'on'
action:
- entity_id: light.tutte_luci_studio
service: light.turn_off
- id: '1547213115127'
alias: Accendi automaticamente luce soggiorno
trigger:
- entity_id: binary_sensor.zigate_00158d0001e5e338_presence
for: 00:00:01
from: 'off'
platform: state
to: 'on'
- device_id: b270fcf247be4eb4a2c474a0b2f26463
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_38e3e501_ias_zone
for:
hours: 0
minutes: 0
seconds: 1
platform: device
type: motion
condition:
- below: '25'
condition: numeric_state
entity_id: sensor.lumi_lumi_sensor_motion_aq2_38e3e501_illuminance
- condition: state
entity_id: switch.accensione_proiettore
state: 'off'
action:
- data_template:
brightness_pct: '{{ states.input_number.luminosita_automatica.state | int }}'
entity_id: light.yeelight_lampada_piantana
kelvin: '{{ states.input_number.freddezza_automatica.state | int }}'
service: light.turn_on
- data:
entity_id: light.strip_led_divano
service: light.turn_on
- id: '1547213203883'
alias: Spegni luce soggiorno senza movimento
trigger:
- entity_id: binary_sensor.zigate_00158d0001e5e338_presence
for: 00:05
platform: state
to: 'off'
- device_id: b270fcf247be4eb4a2c474a0b2f26463
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_38e3e501_occupancy
for:
hours: 0
minutes: 5
seconds: 0
platform: device
type: not_occupied
condition:
- condition: state
entity_id: light.yeelight_lampada_piantana
state: 'on'
action:
- data:
entity_id: light.yeelight_lampada_piantana
transition: '600'
service: light.turn_off
- id: '1556652922214'
alias: Spegni luce camera senza movimento
trigger:
- device_id: fc8e6582a9f644efaa2b3cbca948f73b
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_6842fa01_occupancy
for:
hours: 0
minutes: 10
seconds: 0
platform: device
type: not_occupied
condition: []
action:
- device_id: 2e091e0d2b404d4894dda006fe0d094d
domain: light
entity_id: light.ikea_of_sweden_tradfri_bulb_e27_opal_1000lm_486b14fe_level_on_off
type: brightness_decrease
- id: '1556667685993'
alias: Diminuisci luce studio senza movimento
trigger:
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 3
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 6
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 9
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 12
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 18
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 20
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 25
seconds: 0
platform: device
type: no_motion
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
for:
hours: 0
minutes: 30
seconds: 0
platform: device
type: no_motion
condition: []
action:
- device_id: 28c2d87e7fbe4444aa7bb758279a927d
domain: light
entity_id: light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_400lm_658a05fe_level_light_color_on_off
type: brightness_decrease
- device_id: 220fcadd692143b38981a4d1c64bd668
domain: light
entity_id: light.ikea_of_sweden_tradfri_transformer_30w_19c19ffe_level_on_off
type: brightness_decrease
- id: '1556670075783'
alias: Spegni luce cucina senza movimento
trigger:
- entity_id: binary_sensor.zigate_00158d0001e5e338_presence
for: 00:30
platform: state
to: 'off'
- device_id: b270fcf247be4eb4a2c474a0b2f26463
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_38e3e501_occupancy
for:
hours: 0
minutes: 15
seconds: 0
platform: device
type: not_occupied
condition: []
action:
- entity_id: light.tutte_luci_salone
service: light.turn_off
- id: '1557078079643'
alias: Spegni luci salone se luce fuori
trigger:
- above: '50'
entity_id: sensor.zigate_00158d0001e5e338_luminosity
platform: numeric_state
- above: 55
device_id: b270fcf247be4eb4a2c474a0b2f26463
domain: sensor
entity_id: sensor.lumi_lumi_sensor_motion_aq2_38e3e501_illuminance
platform: device
type: illuminance
condition:
- condition: state
entity_id: light.tutte_luci_salone
state: 'on'
- condition: state
entity_id: sun.sun
state: above_horizon
action:
- data:
entity_id: light.tutte_luci_salone
service: light.turn_off
- id: '1557142622607'
alias: Accendi automaticamente luce bagno
trigger:
- device_id: bb942ea1d1704d3187c7b3df80566d18
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_c7fce501_ias_zone
platform: device
type: motion
condition: []
action:
- data_template:
brightness_pct: '{{ states.input_number.luminosita_automatica.state | int }}'
entity_id: light.osram_classic_a60_w_clear_lightify_a5db030a_level_on_off
service: light.turn_on
- id: '1557142723435'
alias: Spegni luce bagno senza movimento
trigger:
- device_id: 7db92007955647779afa155366c41e90
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_c7fce501_occupancy
for:
hours: 0
minutes: 5
seconds: 0
platform: device
type: not_occupied
condition: []
action:
- device_id: 0261dabfd8d6474b88f3efaa0f77b788
domain: light
entity_id: light.osram_classic_a60_w_clear_lightify_a5db030a_level_on_off
type: brightness_decrease
- id: alarm_armed_away
alias: '[Allarme] Armato - modalità AWAY'
trigger:
- entity_id: alarm_control_panel.house
platform: state
to: armed_away
action:
- data:
message: Allarme armato - modalità AWAY
target: email/[email protected]
service: notify.pushbullet
- data:
message: Allarme armato - modalità AWAY
target: email/[email protected]
service: notify.pushbullet_elisa
- data:
entity_id: media_player.home_mini_salotto
message: Allarme impostato in modalità fuori casa. A presto
service: tts.google_say
- id: alarm_armed_home
alias: '[Allarme] Armato - modalità HOME'
trigger:
- entity_id: alarm_control_panel.house
platform: state
to: armed_home
action:
- data:
message: Allarme armato - Modalità HOME
target: email/[email protected]
service: notify.pushbullet
- data:
message: Allarme armato - modalità HOME
target: email/[email protected]
service: notify.pushbullet_elisa
- data:
entity_id: media_player.home_mini_salotto
message: Allarme impostato, modalità in casa. A presto
service: tts.google_say
- id: alarm_arming_away
alias: '[Allarme] Allarme in attivazione - modalità AWAY'
trigger:
- entity_id: alarm_control_panel.house
platform: state
to: pending
action:
- data:
entity_id: media_player.home_mini_salotto
message: Allarme in attivazione. Assicurati che porte e finestre siano chiuse
service: tts.google_say
- id: alarm_disarmed
alias: '[Allarme] Disarmato'
trigger:
- entity_id: alarm_control_panel.house
platform: state
to: disarmed
action:
- data:
message: Allarme disarmato
target: email/[email protected]
service: notify.pushbullet
- data:
message: Allarme disarmato
target: email/[email protected]
service: notify.pushbullet_elisa
- data:
entity_id: media_player.home_mini_salotto
message: Allarme disarmato
service: tts.google_say
- id: alarm_triggered
alias: '[Allarme] Azionato'
trigger:
- entity_id: alarm_control_panel.house
platform: state
to: triggered
action:
- data:
message: ATTENZIONE! Allarme azionato!! {{ states[states.alarm_control_panel.house.attributes.changed_by.split(".")[0]][
states.alarm_control_panel.house.attributes.changed_by.split(".")[1]].name
}}
target: email/[email protected]
service: notify.pushbullet
- data:
message: ATTENZIONE! Allarme azionato!! {{ states[states.alarm_control_panel.house.attributes.changed_by.split(".")[0]][
states.alarm_control_panel.house.attributes.changed_by.split(".")[1]].name
}}
target: email/[email protected]
service: notify.pushbullet_elisa
- data:
entity_id: media_player.home_mini_salotto
message: Attenzione!! Allarme azionato!! Controlla porte e finestre
service: tts.google_say
- id: alarm_warning
alias: '[Allarme] Attenzione'
trigger:
- entity_id: alarm_control_panel.house
platform: state
to: warning
action:
- data:
message: Sto per azionare l'allarme - {{ states[states.alarm_control_panel.house.attributes.changed_by.split(".")[0]][
states.alarm_control_panel.house.attributes.changed_by.split(".")[1]].name
}}
target: email/[email protected]
service: notify.pushbullet
- data:
message: Sto per azionare l'allarme - {{ states[states.alarm_control_panel.house.attributes.changed_by.split(".")[0]][
states.alarm_control_panel.house.attributes.changed_by.split(".")[1]].name
}}
target: email/[email protected]
service: notify.pushbullet_elisa
- data:
entity_id: media_player.home_mini_salotto
message: Porta aperta. Attenzione! Sto per azionare l'allarme!
service: tts.google_say
- id: '1557242985867'
alias: Film in standby
trigger:
- entity_id: media_player.tim_box_adb
for: 00:00:24
from: playing
platform: state
to: standby
- entity_id: media_player.tim_box_adb
for: 00:00:01
from: playing
platform: state
to: paused
condition: []
action:
- data:
brightness_pct: '30'
color_name: blue
entity_id: lighiantana
transition: '4'
white_value: '255'
entity_id: light.yeelight_lampada_piantana
service: light.turn_on
- id: '1557243306320'
alias: Film in riproduzione
trigger:
- entity_id: media_player.tim_box_adb
for: 00:00:01
from: standby
platform: state
to: playing
- entity_id: media_player.tim_box_adb
for: 00:00:01
from: paused
platform: state
to: playing
condition: []
action:
- entity_id: light.yeelight_lampada_piantana
service: light.turn_off
- id: '1557256616989'
alias: Imposta luce 6:00
trigger:
- at: 06:00
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '5500'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '50'
service: input_number.set_value
- id: '1557256616990'
alias: Imposta luce 9:00
trigger:
- at: 09:00
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '5000'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '100'
service: input_number.set_value
- id: '1557256616991'
alias: Imposta luce 12:00
trigger:
- at: 06:00
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '4500'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '100'
service: input_number.set_value
- id: '1557256616992'
alias: Imposta luce 15:00
trigger:
- at: '15:00'
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '4000'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '100'
service: input_number.set_value
- id: '1557256616993'
alias: Imposta luce 18:00
trigger:
- at: '18:00'
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '3500'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '100'
service: input_number.set_value
- id: '1557256616994'
alias: Imposta luce 21:00
trigger:
- at: '21:00'
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '3000'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '70'
service: input_number.set_value
- id: '1557256616995'
alias: Imposta luce 24:00
trigger:
- at: '23:59'
platform: time
condition: []
action:
- data:
entity_id: input_number.freddezza_automatica
value: '2500'
service: input_number.set_value
- data:
entity_id: input_number.luminosita_automatica
value: '15'
service: input_number.set_value
- id: '1560681724628'
alias: '[Allarme] Attivato panic mode'
trigger:
- platform: template
value_template: '{{ is_state_attr(''alarm_control_panel.house'', ''panic_mode'',
''ACTIVE'') }}'
condition: []
action:
- service: light.turn_on
- id: '1571005391473'
alias: Imposta luce 02:00
description: ''
trigger:
- at: 01:59
platform: time
condition: []
action:
- data:
entity_id: input_number.luminosita_automatica
value: '05'
service: input_number.set_value
- data:
entity_id: input_number.freddezza_automatica
value: '2200'
service: input_number.set_value
- id: '1571005793226'
alias: Spegni tutte le luci all'alba
description: ''
trigger:
- event: sunrise
platform: sun
condition: []
action:
- alias: ''
data:
entity_id: all
service: light.turn_off
- data:
entity_id: switch.dafang_night_mode
service: switch.turn_off
- id: '1571328697418'
alias: Sblocca porta e cancello
description: Apri porta e cancello se collego il Fenix 5 Plus
trigger:
- entity_id: device_tracker.garmin_fenix_5_plus
for: 00:00:03
from: not_home
platform: state
to: home
- event_data:
code: 8539f8
high: 2da
event_type: esphome.rf_code_received
platform: event
condition: []
action:
- data:
entity_id: switch.sonoff_basic_relay
service: switch.turn_on
- delay: 00:00:05
- data:
entity_id: lock.porta_ingresso
service: lock.unlock
- delay: 00:00:10
- data:
entity_id: switch.apertura_porta
service: switch.turn_off
- id: '1571587015564'
alias: Lavatrice in standby per 5 minuti
description: ''
trigger:
- entity_id: sensor.lavatrice
for: 00:05
platform: state
to: standby
condition: []
action:
- data:
message: La lavatrice è in modalità standby. Ricorda di scaricarla e spegnerla
correttamente.
target: email/[email protected]
service: notify.pushbullet_elisa
- id: '1572830197536'
alias: Accendi luci al tramonto
description: ''
trigger:
- event: sunset
platform: sun
condition: []
action:
- data:
entity_id: light.luce_esterna
service: light.turn_on
- data:
entity_id: switch.dafang_night_mode
service: switch.turn_on
- id: '1573242503017'
alias: Imposta input proiettore
description: ''
trigger:
- entity_id: input_select.projector_mode
platform: state
condition: []
action:
- data:
payload_template: '{{ states(''input_select.projector_mode'') }}'
retain: true
topic: cmnd/projector/SOURCE
service: mqtt.publish
- id: '1573242600216'
alias: Imposta volume proiettore
description: ''
trigger:
- entity_id: input_number.volume_projector
platform: state
condition: []
action:
- data:
payload_template: '{{ states(''input_number.volume_projector'') }}'
retain: true
topic: cmnd/projector/VOLUME
service: mqtt.publish
- id: '1573244675979'
alias: Imposta selettore input proiettore
description: ''
trigger:
- entity_id: sensor.input_attuale_proiettore
platform: state
condition: []
action:
- data_template:
entity_id: input_select.projector_mode
option: '{{ states(''sensor.input_attuale_proiettore'')|lower }}'
service: input_select.select_option
- id: '1573244675981'
alias: Imposta selettore volume proiettore
description: ''
trigger:
- entity_id: sensor.volume_attuale_proiettore
platform: state
condition: []
action:
- data_template:
entity_id: input_number.volume_projector
value: '{{ states(''sensor.volume_attuale_proiettore'') }}'
service: input_number.set_value
- id: '1573860531767'
alias: Scendi telo con accensione proiettore
description: ''
trigger:
- entity_id: switch.accensione_proiettore
for: 00:00:01
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: cover.telo_proiettore
service: cover.close_cover
- id: '1573860760562'
alias: Proiettore spento
description: ''
trigger:
- entity_id: switch.accensione_proiettore
from: 'on'
platform: state
to: 'off'
condition: []
action:
- entity_id: cover.telo_proiettore
service: cover.open_cover
- entity_id: cover.tenda_oscurante
service: cover.open_cover
- data: {}
entity_id: media_player.tim_box_adb
service: media_player.turn_off
- data: {}
entity_id: media_player.denon_avr_2113_2
service: media_player.turn_off
- data: {}
entity_id: light.tutte_luci_salone
service: light.turn_on
- id: '1574269989892'
alias: Accendi automaticamente luce corridoio
description: ''
trigger:
- device_id: 5d146f6fc6434aae9298faa62e0367c3
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_7db9f901_ias_zone
platform: device
type: motion
condition:
- after: 08:00
before: 00:00
condition: time
action:
- device_id: 87e1d62db6d44558a9b239433f426352
domain: light
entity_id: light.luce_corridoio
type: turn_on
- id: '1574270135978'
alias: Spegni luce corridoio automaticamente
description: ''
trigger:
- entity_id: binary_sensor.zigate_00158d0001f9b97d_presence
for: 00:01:00
platform: state
to: 'off'
- device_id: 08d7f93887fb458aa1d57430651a1105
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_7db9f901_ias_zone
for:
hours: 0
minutes: 1
seconds: 0
platform: device
type: no_motion
condition: []
action:
- device_id: 87e1d62db6d44558a9b239433f426352
domain: light
entity_id: light.luce_corridoio
type: turn_off
- id: '1577312817486'
alias: Accendi scaldasonno
description: ''
trigger:
- at: '22:30'
platform: time
condition: []
action:
- alias: ''
data: {}
entity_id: switch.ikea_of_sweden_tradfri_control_outlet_30b2e3fe_on_off
service: switch.turn_on
- id: '1579039307602'
alias: Accendi caldaia se valvole sufficientemente aperte
description: ''
trigger:
- platform: template
value_template: '{{ (state_attr(''sensor.spirit_valvola_termostatica_zigbee_cameretta_linkquality'',
''pi_heating_demand'')|int+state_attr(''sensor.spirit_valvola_termostatica_zigbee_salone_linkquality'',
''pi_heating_demand'')|int+state_attr(''sensor.spirit_valvola_termostatica_zigbee_bagno_linkquality'',
''pi_heating_demand'')|int+state_attr(''sensor.spirit_valvola_termostatica_zigbee_studio_linkquality'',
''pi_heating_demand'')|int )+state_attr(''climate.calorifero_bagnetto'', ''valve'')|int
> 99 }}'
condition: []
action:
- entity_id: switch.bruciatore_caldaia
service: switch.turn_on
- id: '1579039414806'
alias: Spegni caldaia se valvole quasi chiuse
description: ''
trigger:
- platform: template
value_template: '{{ (state_attr(''sensor.spirit_valvola_termostatica_zigbee_cameretta_linkquality'',
''pi_heating_demand'')|int+state_attr(''sensor.spirit_valvola_termostatica_zigbee_salone_linkquality'',
''pi_heating_demand'')|int+state_attr(''sensor.spirit_valvola_termostatica_zigbee_bagno_linkquality'',
''pi_heating_demand'')|int+state_attr(''sensor.spirit_valvola_termostatica_zigbee_studio_linkquality'',
''pi_heating_demand'')|int )+state_attr(''climate.calorifero_bagnetto'', ''valve'')|int
< 50 }}'
condition: []
action:
- entity_id: switch.bruciatore_caldaia
service: switch.turn_off
- id: '1579040148767'
alias: Termosifoni di notte
description: ''
trigger:
- at: '23:59'
platform: time
condition:
- condition: or
conditions:
- condition: state
entity_id: person.gianni
state: home
- condition: state
entity_id: person.elisa
state: home
action:
- data:
temperature: 18
entity_id: climate.spirit_valvola_termostatica_zigbee_bagno_climate
service: climate.set_temperature
- data:
temperature: 16.5
entity_id: climate.spirit_valvola_termostatica_zigbee_cameretta_climate
service: climate.set_temperature
- data:
temperature: 17.5
entity_id: climate.spirit_valvola_termostatica_zigbee_salone_climate
service: climate.set_temperature
- data:
temperature: 16.5
entity_id: climate.spirit_valvola_termostatica_zigbee_studio_climate
service: climate.set_temperature
- data:
temperature: 17
entity_id: climate.calorifero_bagnetto
service: climate.set_temperature
- id: '1579040148967'
alias: Termosifoni di giorno
description: ''
trigger:
- at: 07:15
platform: time
condition:
- condition: or
conditions:
- condition: state
entity_id: person.elisa
state: home
- condition: state
entity_id: person.gianni
state: home
action:
- data:
temperature: 19.5
entity_id: climate.spirit_valvola_termostatica_zigbee_bagno_climate
service: climate.set_temperature
- data:
temperature: 18.5
entity_id: climate.spirit_valvola_termostatica_zigbee_cameretta_climate
service: climate.set_temperature
- data:
temperature: 19
entity_id: climate.spirit_valvola_termostatica_zigbee_salone_climate
service: climate.set_temperature
- data:
temperature: 19
entity_id: climate.spirit_valvola_termostatica_zigbee_studio_climate
service: climate.set_temperature
- data:
temperature: 19
entity_id: climate.calorifero_bagnetto
service: climate.set_temperature
- id: '1579100593089'
alias: Attiva allarme e abbassa termosifoni quando fuori casa
description: ''
trigger:
- entity_id: person.elisa
event: leave
platform: zone
zone: zone.home
- entity_id: person.gianni
event: leave
platform: zone
zone: zone.home
condition:
- condition: state
entity_id: person.gianni
state: not_home
- condition: state
entity_id: person.elisa
state: not_home
action:
- entity_id: alarm_control_panel.house
service: alarm_control_panel.alarm_arm_away
- entity_id: automation.termosifoni_di_notte
service: automation.turn_off
- id: '1579707028213'
alias: Automazioni per rientro in casa
description: ''
trigger:
- entity_id: person.elisa
event: enter
platform: zone
zone: zone.home
- entity_id: person.gianni
event: enter
platform: zone
zone: zone.home
condition: []
action:
- entity_id: automation.termosifoni_di_giorno
service: automation.turn_off
- id: '1588867316453'
alias: Aumenta luce scrivania
description: ''
trigger:
- device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_ias_zone
platform: device
type: motion
condition: []
action:
- device_id: 28c2d87e7fbe4444aa7bb758279a927d
domain: light
entity_id: light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_400lm_658a05fe_level_light_color_on_off
type: brightness_increase
- device_id: 220fcadd692143b38981a4d1c64bd668
domain: light
entity_id: light.ikea_of_sweden_tradfri_transformer_30w_19c19ffe_level_on_off
type: brightness_increase
- id: '1590681964297'
alias: Flash se movimento in corridoio
description: ''
trigger:
- device_id: 5d146f6fc6434aae9298faa62e0367c3
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_7db9f901_ias_zone
platform: device
type: motion
condition:
- condition: state
entity_id: light.tutte_luci_studio
state: 'on'
- condition: device
device_id: 31413581e74043e1a33d0fe233cea313
domain: binary_sensor
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_9d41fa01_occupancy
type: is_occupied
action:
- device_id: 220fcadd692143b38981a4d1c64bd668
domain: light
entity_id: light.ikea_of_sweden_tradfri_transformer_30w_19c19ffe_level_on_off
type: flash
- device_id: 28c2d87e7fbe4444aa7bb758279a927d
domain: light
entity_id: light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_400lm_658a05fe_level_light_color_on_off
type: flash
- id: '1591872402676'
alias: Commuta luce studio
description: ''
trigger:
- device_id: 4ed1ef206aa04944b0d9d7276d6e2068
domain: zha
platform: device
subtype: remote_button_short_press
type: remote_button_short_press
condition: []
action:
- data: {}
entity_id: light.tutte_luci_studio
service: light.toggle
- id: '1591882202557'
alias: Alza telo da telecomando
description: ''
trigger:
- event_data:
code: 8539f4
high: 2da
event_type: esphome.rf_code_received
platform: event
condition: []
action:
- data: {}
entity_id: cover.telo_proiettore
service: cover.stop_cover
- data: {}
entity_id: cover.telo_proiettore
service: cover.open_cover
- id: '1591882564950'
alias: Abbassa telo da telecomando
description: ''
trigger:
- event_data:
code: 8539f2
event_type: esphome.rf_code_received
platform: event
condition: []
action:
- data: {}
entity_id: cover.telo_proiettore
service: cover.stop_cover
- data: {}
entity_id: cover.telo_proiettore
service: cover.close_cover
- id: '1591884681014'
alias: Suona citofono
description: ''
trigger:
- event_data:
code: d214c8
event_type: esphome.rf_code_received
platform: event
condition: []
action:
- device_id: b65bf195c73e46e990159e5b8caab753
domain: switch
entity_id: switch.campanello
type: turn_on
- delay: 00:00:01
- device_id: b65bf195c73e46e990159e5b8caab753
domain: switch
entity_id: switch.campanello
type: turn_off
- delay: 00:00:02
- device_id: b65bf195c73e46e990159e5b8caab753
domain: switch
entity_id: switch.campanello
type: turn_on
- delay: 00:00:01
- device_id: b65bf195c73e46e990159e5b8caab753
domain: switch
entity_id: switch.campanello
type: turn_off
- delay: 00:00:02
- device_id: b65bf195c73e46e990159e5b8caab753
domain: switch
entity_id: switch.campanello
type: turn_on
- delay: 00:00:01
- device_id: b65bf195c73e46e990159e5b8caab753
domain: switch
entity_id: switch.campanello
type: turn_off
- id: '1591889916081'
alias: Commuta luce studio
description: ''
trigger:
- device_id: 77424ef516bd4e44bf2dcbeca8e376d1
domain: zha
platform: device
subtype: remote_button_short_press
type: remote_button_short_press
condition: []
action:
- data: {}
entity_id: light.tutte_luci_studio
service: light.toggle
These are all created by the UI editor? Nothing obviously wrong, YAML validator confirms OK apart from some of the line-wrapping in the value_template
lines, but if the UI editor has created these they should be fine.
Are there no other logs that could help, under Developer Tools / Logs or Configuration / Logs on recent versions?
Perhaps try commenting out your most recent additions (bottom of the file) one at a time until it stops erroring. You can reload automations without a restart under Configuration / Server Controls.
Nope, some data_template automation (needed for dynamic light color/power during day) was made via FTP using a good editing program, notepad3. But those are very old, automation errors started with latest HA updates, around 0.110 i think. My guts tell me that it’s something related with one of the ZHA device automation.
The strange thing is that configuration check tells me that config is valid.
Error just pop up on starting, and when I change/edit/save an automation.
P.s. all automations are working, even after this error…
#- id: '1591872402676'
# alias: Commuta luce studio
# description: ''
# trigger:
# - device_id: 4ed1ef206aa04944b0d9d7276d6e2068
# domain: zha
# platform: device
# subtype: remote_button_short_press
# type: remote_button_short_press
# condition: []
# action:
# - data: {}
# entity_id: light.tutte_luci_studio
# service: light.toggle
It’s this one.
Don’t ask me what’s the matter…
- id: '1594378936151'
alias: Commuta luce studio
description: ''
trigger:
- device_id: 77424ef516bd4e44bf2dcbeca8e376d1
domain: zha
platform: device
subtype: remote_button_short_press
type: remote_button_short_press
condition: []
action:
- data: {}
entity_id: light.tutte_luci_studio
service: light.toggle
this one, just re-created, is good. The device_id changed, but it should error properly, why it can’t point me to the right line?
This is my automation to handle custom-made termostat: https://www.pacienciadigital.com/control-temperatura-home-assistant/
It uses 3 independent automations: one to start a timer, another when it finish and the last one to main control. Sorry, it’s in spanish but you can grasp the idea easily.