It sounds as stupid as it is, I know, but I cant get this through. Please help me!
I want to have my alarm armed in perimeter mode while my roomba is active, so I figured, why not create a button that instead of arming away, it will arm_perimeter?
There it goes, I created an input_boolean and added the button in the UI. For my surprise when I press the entity button, it doesnt show if it active or not and I then learned that booleans dont show state in the UI. So I created a template binary sensor for that. POOF there it is! It now works like a charm.
Why am I telling you this? Because the binary and the boolean are the only things I created regarding my vacuum and I havent still added it into ANY automation!
Yet, when I press the button in the UI just for testing the state change, it triggers an automation! Yes… Turning on the roomba button, triggers an irrelevant automation.
I cannot find out what is going on…
When I am pressing the button, the logs show this:
Not passing an entity ID to a service to target all entities is deprecated. Update your call to input_boolean.toggle to be instead: entity_id: all
I thought I should post the automation that is being triggered, just in case you guys can see something I dont:
- alias: '[SECURITY] Movement on stairs'
trigger:
- platform: state
entity_id: binary_sensor.stairsmotionsensor
to: 'on'
action:
- service: notify.tts_lenovo
data:
data:
method: alarm
message: chime
- service: camera.snapshot
data:
entity_id: camera.stairs
filename: /home/homeassistant/.homeassistant/www/images/snapshot.jpg
- condition: state
entity_id: group.presence_tracker
state: not_home
- delay: 00:00:01
- service: notify.telegram_argy
data:
title: 'Stairs Photo'
message: 'Stairs Photo'
data:
photo:
file: /home/homeassistant/.homeassistant/www/images/snapshot.jpg
caption: 'Stairs Photo'
- service: notify.telegram_fotini
data:
message: 'Stairs Photo'
data:
photo:
file: /home/homeassistant/.homeassistant/www/images/snapshot.jpg
caption: 'Stairs Photo'
- delay: 00:00:03
- service: camera.snapshot
data:
entity_id: camera.stairs
filename: /home/homeassistant/.homeassistant/www/images/snapshot2.jpg
- delay: 00:00:01
- service: notify.telegram_argy
data:
title: 'Stairs Photo 2'
message: 'Τράβηξα και 2η φωτογραφία για να είσαι σίγουρος.'
data:
photo:
file: /home/homeassistant/.homeassistant/www/images/snapshot2.jpg
caption: 'Stairs Photo'
- service: notify.telegram_fotini
data:
message: 'Stairs Photo'
data:
photo:
file: /home/homeassistant/.homeassistant/www/images/snapshot2.jpg
caption: 'Stairs Photo'
And here are the boolean and the binary sensor:
binary_sensor.yaml
- platform: template
sensors:
roombamotion:
value_template: "{{ is_state('input_boolean.roombacycle', 'on') }}"
input_boolean.yaml
roombacycle:
initial: off