Hi,
I’m trying to do this Project , but I can’t get script working.
I’ve copied this script from the link
script:
vacuum_zones_erdgeschoss:
alias: "Erdgeschoss Zonen saugen"
sequence:
- service: vacuum.send_command
data_template:
entity_id: 'vacuum.rockrobo'
command: 'zoned_cleanup'
params:
'zone_ids':
- "{%- if states('input_boolean.flur_vacuum_zone') == 'on' %}flur{% endif %}"
- "{%- if states('input_boolean.kueche_vacuum_zone') == 'on' %}kueche{% endif %}"
adapted to my configuration
vacuum_zone_pulizia:
alias: Vacuum zone pulizia
sequence:
- service: vacuum.send_command
data_template:
entity_id: 'vacuum.rockrobo'
command: 'zoned_cleanup'
params:
'zone_ids':
- "{%- if states('input_boolean.floor1camera_vacuum_zone') == 'on' %}floor1camera{% endif %}"
- "{%- if states('input_boolean.floor1corridoio_vacuum_zone') == 'on' %}floor1corridoio{% endif %}"
But if I turn on corresponding boonlean, script doesn’t start.
So i tried this with automations
- id: '1571142168757'
alias: floor1camera
description: ''
trigger:
- entity_id: input_boolean.floor1camera_vacuum_zone
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
command: zoned_cleanup
entity_id: vacuum.rockrobo
params:
zone_ids:
- floor1camera
service: vacuum.send_command
And this works… I can’t trigger my script with booleans entites which works with automations.
In registry I can see booleans and automations changing status, but can’t see scripts.