Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nsw_rural_fire_service_feed.geo_location Namespace Reference

Classes

class  NswRuralFireServiceFeedEntityManager
 
class  NswRuralFireServiceLocationEvent
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_CATEGORY = "category"
 
string ATTR_COUNCIL_AREA = "council_area"
 
string ATTR_EXTERNAL_ID = "external_id"
 
string ATTR_FIRE = "fire"
 
string ATTR_PUBLICATION_DATE = "publication_date"
 
string ATTR_RESPONSIBLE_AGENCY = "responsible_agency"
 
string ATTR_SIZE = "size"
 
string ATTR_STATUS = "status"
 
string ATTR_TYPE = "type"
 
string CONF_CATEGORIES = "categories"
 
float DEFAULT_RADIUS_IN_KM = 20.0
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(minutes=5)
 
string SIGNAL_DELETE_ENTITY = "nsw_rural_fire_service_feed_delete_{}"
 
string SIGNAL_UPDATE_ENTITY = "nsw_rural_fire_service_feed_update_{}"
 
string SOURCE = "nsw_rural_fire_service_feed"
 
list VALID_CATEGORIES = ["Advice", "Emergency Warning", "Not Applicable", "Watch and Act"]
 

Detailed Description

Support for NSW Rural Fire Service Feeds.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.nsw_rural_fire_service_feed.geo_location.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the NSW Rural Fire Service Feed platform.

Definition at line 77 of file geo_location.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.nsw_rural_fire_service_feed.geo_location._LOGGER = logging.getLogger(__name__)
private

Definition at line 40 of file geo_location.py.

◆ ATTR_CATEGORY

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_CATEGORY = "category"

Definition at line 42 of file geo_location.py.

◆ ATTR_COUNCIL_AREA

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_COUNCIL_AREA = "council_area"

Definition at line 43 of file geo_location.py.

◆ ATTR_EXTERNAL_ID

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_EXTERNAL_ID = "external_id"

Definition at line 44 of file geo_location.py.

◆ ATTR_FIRE

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_FIRE = "fire"

Definition at line 45 of file geo_location.py.

◆ ATTR_PUBLICATION_DATE

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_PUBLICATION_DATE = "publication_date"

Definition at line 46 of file geo_location.py.

◆ ATTR_RESPONSIBLE_AGENCY

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_RESPONSIBLE_AGENCY = "responsible_agency"

Definition at line 47 of file geo_location.py.

◆ ATTR_SIZE

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_SIZE = "size"

Definition at line 48 of file geo_location.py.

◆ ATTR_STATUS

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_STATUS = "status"

Definition at line 49 of file geo_location.py.

◆ ATTR_TYPE

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.ATTR_TYPE = "type"

Definition at line 50 of file geo_location.py.

◆ CONF_CATEGORIES

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.CONF_CATEGORIES = "categories"

Definition at line 52 of file geo_location.py.

◆ DEFAULT_RADIUS_IN_KM

float homeassistant.components.nsw_rural_fire_service_feed.geo_location.DEFAULT_RADIUS_IN_KM = 20.0

Definition at line 54 of file geo_location.py.

◆ PLATFORM_SCHEMA

homeassistant.components.nsw_rural_fire_service_feed.geo_location.PLATFORM_SCHEMA
Initial value:
1 = GEO_LOCATION_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_CATEGORIES, default=[]): vol.All(
4  cv.ensure_list, [vol.In(VALID_CATEGORIES)]
5  ),
6  vol.Optional(CONF_LATITUDE): cv.latitude,
7  vol.Optional(CONF_LONGITUDE): cv.longitude,
8  vol.Optional(CONF_RADIUS, default=DEFAULT_RADIUS_IN_KM): vol.Coerce(float),
9  }
10 )

Definition at line 65 of file geo_location.py.

◆ SCAN_INTERVAL

homeassistant.components.nsw_rural_fire_service_feed.geo_location.SCAN_INTERVAL = timedelta(minutes=5)

Definition at line 56 of file geo_location.py.

◆ SIGNAL_DELETE_ENTITY

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.SIGNAL_DELETE_ENTITY = "nsw_rural_fire_service_feed_delete_{}"

Definition at line 58 of file geo_location.py.

◆ SIGNAL_UPDATE_ENTITY

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.SIGNAL_UPDATE_ENTITY = "nsw_rural_fire_service_feed_update_{}"

Definition at line 59 of file geo_location.py.

◆ SOURCE

string homeassistant.components.nsw_rural_fire_service_feed.geo_location.SOURCE = "nsw_rural_fire_service_feed"

Definition at line 61 of file geo_location.py.

◆ VALID_CATEGORIES

list homeassistant.components.nsw_rural_fire_service_feed.geo_location.VALID_CATEGORIES = ["Advice", "Emergency Warning", "Not Applicable", "Watch and Act"]

Definition at line 63 of file geo_location.py.