Namespaces | |
| config_flow | |
| const | |
| device_tracker | |
Functions | |
| str | _address (str value) |
| def | _device_name (data) |
| def | _is_mobile_beacon (data, mobile_beacons) |
| def | _set_location (hass, data, location_name) |
| bool | async_setup (HomeAssistant hass, ConfigType hass_config) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| web.Response | handle_webhook (HomeAssistant hass, str webhook_id, web.Request request) |
Variables | |
| async_remove_entry = config_entry_flow.webhook_async_remove_entry | |
| string | ATTR_ADDRESS = "address" |
| string | ATTR_BEACON_ID = "beaconUUID" |
| string | ATTR_CURRENT_LATITUDE = "currentLatitude" |
| string | ATTR_CURRENT_LONGITUDE = "currentLongitude" |
| string | ATTR_DEVICE = "device" |
| string | ATTR_ENTRY = "entry" |
| string | BEACON_DEV_PREFIX = "beacon" |
| string | CONF_MOBILE_BEACONS = "mobile_beacons" |
| CONFIG_SCHEMA | |
| string | LOCATION_ENTRY = "1" |
| string | LOCATION_EXIT = "0" |
| list | PLATFORMS = [Platform.DEVICE_TRACKER] |
| string | TRACKER_UPDATE = f"{DOMAIN}_tracker_update" |
| WEBHOOK_SCHEMA | |
Support for Geofency.
|
private |
Coerce address by replacing '\n' with ' '.
Definition at line 59 of file __init__.py.
|
private |
Return name of device tracker.
Definition at line 121 of file __init__.py.
|
private |
Check if we have a mobile beacon.
Definition at line 116 of file __init__.py.
|
private |
Fire HA event to set location.
Definition at line 128 of file __init__.py.
| bool homeassistant.components.geofency.async_setup | ( | HomeAssistant | hass, |
| ConfigType | hass_config | ||
| ) |
Set up the Geofency component.
Definition at line 80 of file __init__.py.
| bool homeassistant.components.geofency.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Configure based on config entry.
Definition at line 144 of file __init__.py.
| bool homeassistant.components.geofency.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 154 of file __init__.py.
| web.Response homeassistant.components.geofency.handle_webhook | ( | HomeAssistant | hass, |
| str | webhook_id, | ||
| web.Request | request | ||
| ) |
Handle incoming webhook from Geofency.
Definition at line 92 of file __init__.py.
| homeassistant.components.geofency.async_remove_entry = config_entry_flow.webhook_async_remove_entry |
Definition at line 161 of file __init__.py.
| string homeassistant.components.geofency.ATTR_ADDRESS = "address" |
Definition at line 44 of file __init__.py.
| string homeassistant.components.geofency.ATTR_BEACON_ID = "beaconUUID" |
Definition at line 45 of file __init__.py.
| string homeassistant.components.geofency.ATTR_CURRENT_LATITUDE = "currentLatitude" |
Definition at line 46 of file __init__.py.
| string homeassistant.components.geofency.ATTR_CURRENT_LONGITUDE = "currentLongitude" |
Definition at line 47 of file __init__.py.
| string homeassistant.components.geofency.ATTR_DEVICE = "device" |
Definition at line 48 of file __init__.py.
| string homeassistant.components.geofency.ATTR_ENTRY = "entry" |
Definition at line 49 of file __init__.py.
| string homeassistant.components.geofency.BEACON_DEV_PREFIX = "beacon" |
Definition at line 51 of file __init__.py.
| string homeassistant.components.geofency.CONF_MOBILE_BEACONS = "mobile_beacons" |
Definition at line 29 of file __init__.py.
| homeassistant.components.geofency.CONFIG_SCHEMA |
Definition at line 31 of file __init__.py.
| string homeassistant.components.geofency.LOCATION_ENTRY = "1" |
Definition at line 53 of file __init__.py.
| string homeassistant.components.geofency.LOCATION_EXIT = "0" |
Definition at line 54 of file __init__.py.
| list homeassistant.components.geofency.PLATFORMS = [Platform.DEVICE_TRACKER] |
Definition at line 27 of file __init__.py.
| string homeassistant.components.geofency.TRACKER_UPDATE = f"{DOMAIN}_tracker_update" |
Definition at line 56 of file __init__.py.
| homeassistant.components.geofency.WEBHOOK_SCHEMA |
Definition at line 64 of file __init__.py.