I posted this elsewhere on the forum but here is probably more appropriate, so apologies for the duplication.
I’m trying to figure out how configure a “fake” device_tracker or a template sensor that updates depending on the status of an inputboolean that shows a home or away status depending on multiple device trackers… what I’d like to see in the front-end though is an entity picture with “home” or “away” status in the orange bar:
With a template sensor method as mentioned above works very well but when it’s not in a group and displayed at the top of HomeAssistant, you do not get the status in the “orange” bar… which is what I’m trying to achieve.
The reason I mention a “fake” device_tracker is because I’m using multiple methods per person to track their whereabouts:
- ASUSWRT (Mike WiFi)
- ASUSWRT (Mike OwnTracks)
- MQTT ROOM which talks to HappyBubbles Presence Server which registers the location of an iBeacon on my keys through a HappyBubbles Bluetooth Presence Detector (Mikes Keys)
- MQTT Sensor which updates with an RFID code when I tap an NFC tag on my NFC reciever built with a RFID RC522 connected to an ESP8266 (NFC Scanner)
When any of these change state it updates an Input_boolean (e.g. input_boolean.mike_home) which in turn triggers my Home and Away scripts (light on/off, switches on/off, nest home/away, alarm system on/off etc)
- alias: 'Mike Home'
condition:
condition: state
entity_id: input_boolean.mike_home
state: 'off'
trigger:
- platform: state
entity_id: device_tracker.pi_mikesiphone
state: 'home'
- platform: state
entity_id: sensor.rfid
state: '__REDACTED_ (RFID TAG NUMBER)'_
- platform: state
entity_id: device_tracker.mikes_iphone
state: 'home'
- platform: state
entity_id: sensor.mikes_keys
state: 'happy-bubbles-ble'
action:
- service: homeassistant.turn_on
entity_id: input_boolean.mike_home
- alias: 'Mike Away'
condition:
condition: state
entity_id: input_boolean.mike_home
state: 'on'
trigger:
- platform: state
entity_id: device_tracker.pi_mikesiphone
state: 'not_home'
- platform: state
entity_id: device_tracker.mikes_iphone
state: 'not_home'
- platform: state
entity_id: sensor.mikes_keys
state: 'away'
action:
- service: homeassistant.turn_off
entity_id: input_boolean.mike_home
To summarise, I’m trying to get this:
To change from “home” and “away” based on the input booleans above… purely for aesthetics, and it could even replace the input booleans!
Hoping someone can help!
Thanks