Hi,
I would like to have a dummy On/Off (Home/Away) sensor that it’s state will be changed based on automations.
If no motion was detected by all of my motion sensors for X minutes, change the dummy sensor state to Away.
Then I can use the dummy sensor’s state for other automations like turning all lights off etc…
I am new to HA, and would appreciate your help.
How can this be accomplished?
Thank!
Shaad
(David)
December 22, 2020, 7:14am
3
From my experience, an home/away sensor based only on motion sensors is a bad idea. You will have wrong ‘away’ status. A lot.
I have a new entity!
Is there a way to make it look like a sensor, and not a switch?
(currently I have a toggle button)
@Shaad Thanks for the tip. I will add more sensors to rely on. What is your current setup to avoid wrong "Away"s?
You can make a template binary sensor for that.
binary_sensor:
- platform: template
sensors:
at_home:
friendly_name: "At home"
device_class: presence
value_template: "{{ is_state('input_boolean.at_home', 'on') }}"
I am having hard time making this presence binary sensor state to change based on PIR sensor activity.
In the automations I cannot choose an entity as an action, and this entity does not show up under devices.
Any ideas?
Can I maybe add the option for entities to be chosen as an action?
TNX