Ok, I re-wrote some of this automation, and turned every other automation off from the GUI. So now only this is running and I can see this in the logbook:
Automations that are currently running on the RPI (rest are disabled over GUI).
I still have the same behavior of them not working or triggering (mostly for lights off…).
id: 'xxxxxxxxxxx'
alias: Dnevna_Off_Motion
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_8
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_3
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_31
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_sensor_spavaca
domain: binary_sensor
condition:
- condition: and
conditions:
- type: is_no_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_dnevna
domain: binary_sensor
- type: is_no_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_34
domain: binary_sensor
action:
- service: script.svijetla_dnevna_turn_off
data: {}
mode: single
id: 'xxxxxxxxxxx'
alias: dnevna_off_motion_2
description: ''
trigger:
- type: no_motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_dnevna
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
condition:
- condition: device
type: is_on
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_prozora_1s_white
domain: light
- type: is_no_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_34
domain: binary_sensor
action:
- service: script.svijetla_dnevna_turn_off
data: {}
mode: single
id: 'xxxxxxxxxxx'
alias: dnevna_on_motion
initial_state: 'on'
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_dnevna
domain: binary_sensor
condition:
- type: is_illuminance
condition: device
device_id: xxxxxxxxxxx
entity_id: sensor.lightlevel_4
domain: sensor
below: 18
action:
- service: script.svijetla_dnevna_turn_on
data: {}
mode: single
id: 'xxxxxxxxxxx'
alias: Hodnik_turn_off_motion
initial_state: 'on'
description: ''
trigger:
- type: no_motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_31
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
condition: []
action:
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.yeelight_hodnik
domain: light
mode: single
id: 'xxxxxxxxxxx'
alias: Hodnik_turn_on_motion
initial_state: 'on'
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_31
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: xxxxxxxxxxx
entity_id: light.yeelight_hodnik
domain: light
mode: single
id: 'xxxxxxxxxxx'
alias: Ikea_tradfri_krevet_All_Off
description: ''
trigger:
- device_id: xxxxxxxxxxx
domain: deconz
platform: device
type: remote_button_long_press
subtype: turn_off
condition: []
action:
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.dimmable_light_2
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.dnevna_do_vrata_1s
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_prozora_1s_white
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_vrata
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.hektar
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.dnevna_do_prozora
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.yeelight_hodnik
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.spavaca_ikea_color
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: switch.outlet_dnevna
domain: switch
- scene: scene.miio_outlet_test_off
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.192_168_31_151
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: switch.outlet_kuhinja
domain: switch
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: switch.outlet_fado
domain: switch
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.kupaona_ikea_800lm
domain: light
mode: single
id: '1607038943757'
alias: Kuhinja_off_motion
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_dnevna
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_31
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_3
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_sensor_spavaca
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_34
domain: binary_sensor
condition:
- type: is_no_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_8
domain: binary_sensor
action:
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_prozora_1s_white
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_vrata
domain: light
mode: single
id: 'xxxxxxxxxxx'
alias: kuhinja_off_motion_2
description: ''
trigger:
- type: no_motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_8
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
condition:
- condition: device
type: is_on
device_id: xxxxxxxxxxx
entity_id: light.dnevna_do_prozora
domain: light
- type: is_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_dnevna
domain: binary_sensor
- type: is_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_34
domain: binary_sensor
action:
- service: script.kuhinja_off_lights
data: {}
mode: single
id: 'xxxxxxxxxxx'
alias: kuhinja_on_motion
initial_state: 'on'
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_8
domain: binary_sensor
condition:
- type: is_illuminance
condition: device
device_id: xxxxxxxxxxx
entity_id: sensor.lightlevel_7
domain: sensor
below: 18
action:
- type: turn_on
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_prozora_1s_white
domain: light
- type: turn_on
device_id: xxxxxxxxxxx
entity_id: light.kuhinja_do_vrata
domain: light
mode: single
id: 'xxxxxxxxxxx'
alias: motion_turn_off_kupaona
description: ''
trigger:
- type: no_motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_3
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition:
- type: is_humidity
condition: device
device_id: xxxxxxxxxxx
entity_id: sensor.humidity_18
domain: sensor
below: 85
above: 5
action:
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.kupaona_ikea_800lm
domain: light
initial_state: 'on'
mode: restart
- id: '1603735171572'
alias: motion_turn_on_kupaona
description: ''
trigger:
- platform: device
domain: binary_sensor
entity_id: binary_sensor.presence_3
device_id: xxxxxxxxxxx
type: motion
condition: []
action:
- type: turn_on
device_id: xxxxxxxxxxx
entity_id: light.kupaona_ikea_800lm
domain: light
flash: short
mode: single
id: 'xxxxxxxxxxx'
alias: Spavaca_off_motion
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_dnevna
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_31
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_3
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_8
domain: binary_sensor
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_34
domain: binary_sensor
condition:
- type: is_no_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_sensor_spavaca
domain: binary_sensor
action:
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.spavaca_ikea_color
domain: light
- type: turn_off
device_id: xxxxxxxxxxx
entity_id: light.192_168_31_151
domain: light
mode: single
id: 'xxxxxxxxxxx'
alias: spavaca_off_motion_2
description: ''
trigger:
- type: no_motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_sensor_spavaca
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
condition:
- type: is_motion
condition: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.presence_34
domain: binary_sensor
action:
- service: script.spavaca_off_light
data: {}
mode: single
id: 'xxxxxxxxxxx'
alias: spavaca_on_motion
initial_state: 'on'
description: ''
trigger:
- type: motion
platform: device
device_id: xxxxxxxxxxx
entity_id: binary_sensor.motion_sensor_spavaca
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: xxxxxxxxxxx
entity_id: light.spavaca_ikea_color
domain: light
- type: turn_on
device_id: xxxxxxxxxxx
entity_id: light.192_168_31_151
domain: light
mode: single