#device tracker from input boolean

1 messages · Page 1 of 1 (latest)

topaz fulcrum
#

I’m trying to turn an input boolean into a device tracker with an automation, and googling seemed to suggest using the device_tracker.see method, but when I try to use it the interface says it updates seen “legacy” device trackers. If this is deprecated methods/code, what is the updated/modern method for me to make a device tracker from an input boolean?

pliant plinth
#

What are you try to achieve in the first place?

proven sand
#

Probably the ideal way to do this sort of thing would be a "template" device_tracker entity, but that's not currently supported. There is a feature request open for this: https://github.com/orgs/home-assistant/discussions/989

GitHub

Integration name Template Link to integration documentation on our website https://www.home-assistant.io/integrations/template/ Describe the enhancement Currently, there is no option to create a cu...

#

From the comments there It looks like calling device_tracker.see is the current best way to deal with this - if you call that and provide a device id for a device tracker that doesn't currently exist, it appears to create a new device tracker entity with the provided name.

topaz fulcrum