Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.owntracks.OwnTracksContext Class Reference

Public Member Functions

def __init__ (self, hass, secret, max_gps_accuracy, import_waypoints, waypoint_whitelist, region_mapping, events_only, mqtt_topic)
 
def async_see (self, **data)
 
def async_see_beacons (self, hass, dev_id, kwargs_param)
 
def async_valid_accuracy (self, message)
 
def set_async_see (self, func)
 

Public Attributes

 async_see
 
 events_only
 
 hass
 
 import_waypoints
 
 max_gps_accuracy
 
 mobile_beacons_active
 
 mqtt_topic
 
 region_mapping
 
 regions_entered
 
 secret
 
 waypoint_whitelist
 

Private Attributes

 _pending_msg
 

Detailed Description

Hold the current OwnTracks context.

Definition at line 217 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.owntracks.OwnTracksContext.__init__ (   self,
  hass,
  secret,
  max_gps_accuracy,
  import_waypoints,
  waypoint_whitelist,
  region_mapping,
  events_only,
  mqtt_topic 
)
Initialize an OwnTracks context.

Definition at line 220 of file __init__.py.

Member Function Documentation

◆ async_see()

def homeassistant.components.owntracks.OwnTracksContext.async_see (   self,
**  data 
)
Send a see message to the device tracker.

Definition at line 283 of file __init__.py.

◆ async_see_beacons()

def homeassistant.components.owntracks.OwnTracksContext.async_see_beacons (   self,
  hass,
  dev_id,
  kwargs_param 
)
Set active beacons to the current location.

Definition at line 288 of file __init__.py.

◆ async_valid_accuracy()

def homeassistant.components.owntracks.OwnTracksContext.async_valid_accuracy (   self,
  message 
)
Check if we should ignore this message.

Definition at line 245 of file __init__.py.

◆ set_async_see()

def homeassistant.components.owntracks.OwnTracksContext.set_async_see (   self,
  func 
)
Set a new async_see function.

Definition at line 275 of file __init__.py.

Member Data Documentation

◆ _pending_msg

homeassistant.components.owntracks.OwnTracksContext._pending_msg
private

Definition at line 242 of file __init__.py.

◆ async_see

homeassistant.components.owntracks.OwnTracksContext.async_see

Definition at line 277 of file __init__.py.

◆ events_only

homeassistant.components.owntracks.OwnTracksContext.events_only

Definition at line 240 of file __init__.py.

◆ hass

homeassistant.components.owntracks.OwnTracksContext.hass

Definition at line 232 of file __init__.py.

◆ import_waypoints

homeassistant.components.owntracks.OwnTracksContext.import_waypoints

Definition at line 237 of file __init__.py.

◆ max_gps_accuracy

homeassistant.components.owntracks.OwnTracksContext.max_gps_accuracy

Definition at line 234 of file __init__.py.

◆ mobile_beacons_active

homeassistant.components.owntracks.OwnTracksContext.mobile_beacons_active

Definition at line 235 of file __init__.py.

◆ mqtt_topic

homeassistant.components.owntracks.OwnTracksContext.mqtt_topic

Definition at line 241 of file __init__.py.

◆ region_mapping

homeassistant.components.owntracks.OwnTracksContext.region_mapping

Definition at line 239 of file __init__.py.

◆ regions_entered

homeassistant.components.owntracks.OwnTracksContext.regions_entered

Definition at line 236 of file __init__.py.

◆ secret

homeassistant.components.owntracks.OwnTracksContext.secret

Definition at line 233 of file __init__.py.

◆ waypoint_whitelist

homeassistant.components.owntracks.OwnTracksContext.waypoint_whitelist

Definition at line 238 of file __init__.py.


The documentation for this class was generated from the following file: