Home Assistant Unofficial Reference 2024.12.1
sensor.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.mqtt_room.sensor.MQTTRoomSensor
 

Namespaces

 homeassistant.components.mqtt_room.sensor
 

Functions

dict[str, Any] homeassistant.components.mqtt_room.sensor._parse_update_data (str topic, dict[str, Any] data)
 
str homeassistant.components.mqtt_room.sensor._slugify_upper (str string)
 
None homeassistant.components.mqtt_room.sensor.async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 homeassistant.components.mqtt_room.sensor._LOGGER = logging.getLogger(__name__)
 
string homeassistant.components.mqtt_room.sensor.ATTR_DISTANCE = "distance"
 
string homeassistant.components.mqtt_room.sensor.ATTR_ROOM = "room"
 
string homeassistant.components.mqtt_room.sensor.CONF_AWAY_TIMEOUT = "away_timeout"
 
int homeassistant.components.mqtt_room.sensor.DEFAULT_AWAY_TIMEOUT = 0
 
string homeassistant.components.mqtt_room.sensor.DEFAULT_NAME = "Room Sensor"
 
int homeassistant.components.mqtt_room.sensor.DEFAULT_TIMEOUT = 5
 
string homeassistant.components.mqtt_room.sensor.DEFAULT_TOPIC = "room_presence"
 
 homeassistant.components.mqtt_room.sensor.MQTT_PAYLOAD
 
 homeassistant.components.mqtt_room.sensor.PLATFORM_SCHEMA