Here is my boolean statement. Does this statement need to be separated into (3) individuals statements. The result I am looking for if any of the (3) are home to show them home. This only seems to work when dad is turned on then everybody is on. If dad is not_home nobody seems to be home.
Thanks for any help you can provide.
- id: '1528490102093'
alias: Trigger
trigger:
- entity_id: device_tracker.dad
platform: state
to: home
- entity_id: device_tracker.mom
platform: state
to: home
- entity_id: device_tracker.son
platform: state
to: home
action:
- entity_id: input_boolean.dad
service: input_boolean.turn_on
- entity_id: input_boolean.mom
service: input_boolean.turn_on
- entity_id: input_boolean.son
service: input_boolean.turn_on
I am trying to do automation’s individually. Or maybe I am looking at it the wrong way. @lolouk44 I think you have already helped me in the past. What I want to happen is if anyone that is being tracked when they come home the automation is triggered by them getting into the home radius. I can go in any direction at this point because I am just getting started.
not too sure why you want to duplicate the device trackers state with an input boolean but anyway here’s one way to achieve what you’re after:
- id: '1528490102093'
alias: Trigger
trigger:
- entity_id: device_tracker.dad
platform: state
to: home
- entity_id: device_tracker.mom
platform: state
to: home
- entity_id: device_tracker.son
platform: state
to: home
action:
- service: input_boolean.turn_on
data_template:
entity_id: >-
{%- if trigger.entity_id == "device_tracker.dad" -%}input_boolean.dad
{%- if trigger.entity_id == "device_tracker.mom" -%}input_boolean.mom
{%- else -%}input_boolean.son
{%- endif -%}
it depends what you want to do. If you want to check if at least 1 person is home, then group your devices trackers in a group. If at least 1 device is home, the group status will be home. If you want a separate automation per each device or want to check if all devices are home, you need to track them separately
How can I create something like this screen shot. I have a Household tab and I am tracking device_trackers there. I tried to use the group.Home_Status here is my code:
So I tried to do a little copying and pasting to get some of your “States”. But all efforts seem to be failing. Here is what I did:
Created a directory called: Sensor
Added a file called sensor.yaml see code below
Quick question trying to duplicate some of you efforts. You use a group.alert group.all_alert group.scenes so on so on. I want to make sure I understand what is suppose to happen here.
First you have a directory called groups:
Then you have these individual yaml files inside the groups folders:
group.alert
group.all_alert
so on, so on
When you are calling the group.alert it will reference back to groups directory or do you have to call it group? Hope this makes some since.
thanks for pointing it out, I don’t have a group.all_alerts, it’s a remnent of a previous config. Now amended.
Anything in the group folder can be referenced. You either call entities one by one and they appear in the top as bubbles, or you group them and you call the group and it shows as a card.
Any of my files starting with a _ are views (the tabs on top): easier for me to differentiate them, they also show up on top of my files in file explorer (though at the bottom in github)
I’m not too must interested/bothered by the look and feel of the front end as I don’t use it much, (a true smart home should not need human manual interaction in my view), I just need it to be logical for when I actually need manual override.