Hi,
I’m trying to clean up all my automation and in some cases turn two into one…
- alias: Home Status David
trigger:
- platform: state
entity_id: input_boolean.occupancy_david_home
from: 'off'
to: 'on'
action:
- service: device_tracker.see
data:
dev_id: david
location_name: home
source_type: bluetooth
- alias: Not Home Status David
trigger:
- platform: state
entity_id: input_boolean.occupancy_david_home
from: 'on'
to: 'off'
action:
- service: device_tracker.see
data:
dev_id: david
location_name: not_home
source_type: bluetooth
is it possible to combine the two above into one?
if the input changes complete the correct action.