Hello All,
Thanks for the help so far. I am up and running, I have a few tasmotised Sonoffs in action and I have just built a multi sensor. And I have life 360 device tracking working.
Now its time to automate some of this. And I want to use the home away status as a condition for a lot of the automation. So if me or the family are home our PIRs will turn lights and stuff on, and if we’re not home I want the PIRs to let us know there are unauthorised movements in the house and possibly send camera images. (I need to walk before I can tun though!)
So I am going to set up a boolean switch where it will switch on when our life 360 app is in the home state. But there is also this newance of person now on here so I am a bit unsure which way to tackle it.
I currently have a location set up card for all the family. And I have set a map tab up too. (bit stalkerish but peace of mind when my 13 year old visites her friends or is at her clubs etc) Allo good.
I have set up a boolean for the wifes phone as per this in the configuration.yaml
input_boolean:
kimhome:
name: Kim is home
initial: off
icon: mdi:human-female
Then I have added it to my automations card
Then I have added the following to the automations.yaml
# Kim Boolean Home State
- alias: 'mark Kim home'
condition:
condition: state
entity_id: input_boolean.kimhome
state: 'off'
trigger:
- platform: state
entity_id: device_tracker.life360_kimmie
to: 'home'
action:
service: input_boolean.turn_on
data:
entity_id: input_boolean.kimhome
- alias: 'mark Kim away'
condition:
condition: state
entity_id: input_boolean.kimhome
state: 'on'
trigger:
- platform: state
entity_id: device_tracker.life360_kimmie
to: 'not_home'
action:
service: input_boolean.turn_off
data:
entity_id: input_boolean.kimhome
Now I have used the life360 entity, but I have also set up the person entity and linkied the life360 to this too, so they will both show the location status as home or not_home or other locations I have named in the configuration.yaml
But the boolean is not neing updated when the phone is in the home location.
Any ideas and or suggestions would be greatlyh appreciated.
Thanks in advance.
Rob