Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using device_tracker instead of input_boolean #138

Closed
nephilic opened this issue Mar 9, 2019 · 2 comments
Closed

Using device_tracker instead of input_boolean #138

nephilic opened this issue Mar 9, 2019 · 2 comments

Comments

@nephilic
Copy link

nephilic commented Mar 9, 2019

I already had a lot of automation setup around device_trackers and didn't want to switch to input_boolean, but I did want to use multiple pi zeros and occupancy_confidence... So I did some digging and found the undocumented service below that will allow you to use device_trackers with occupancy_confidence and multiple pi zeros. Just thought you might want to reference this in your doc for those looking for a similar solution. Thanks.

Example:
- alias: John Occupancy On
  hide_entity: true
  trigger:
    - platform: numeric_state
      entity_id: sensor.john_occupancy_confidence
      above: 10
  action:
    - service: device_tracker.see
      data:
        dev_id: device_tracker.john_tile
	location_name: home

- alias: John Occupancy Off
  hide_entity: true
  trigger:
    - platform: numeric_state
      entity_id: sensor.john_occupancy_confidence
      below: 10
  action:
    - service: device_tracker.see
      data:
        dev_id: device_tracker.john_tile
	location_name: not_home

Source: https://community.home-assistant.io/t/device-tracker-from-script/97295/7

@andrewjfreyer
Copy link
Owner

Nice!

@andrewjfreyer
Copy link
Owner

Added to the readme in 0.2.048. Thanks for the hint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants