1 """Support for the Philips Hue sensor devices."""
7 CONF_ALLOW_UNREACHABLE,
8 DEFAULT_ALLOW_UNREACHABLE,
14 """Representation of a Hue device."""
16 def __init__(self, sensor, name, bridge, primary_sensor=None):
17 """Initialize the sensor."""
23 CONF_ALLOW_UNREACHABLE, DEFAULT_ALLOW_UNREACHABLE
28 """Return the primary sensor entity of the physical device."""
33 """Return the ID of the physical device this sensor is part of."""
38 """Return the ID of this Hue sensor."""
39 return self.
sensorsensor.uniqueid
43 """Return a friendly name for the sensor."""
44 return self.
_name_name
48 """Return detail of available software updates for this device."""
53 """Return the device info.
55 Links individual entities together in the hass device registry.
58 identifiers={(HUE_DOMAIN, self.
device_iddevice_id)},
63 via_device=(HUE_DOMAIN, self.
bridgebridge.api.config.bridgeid),
def __init__(self, sensor, name, bridge, primary_sensor=None)
DeviceInfo device_info(self)
web.Response get(self, web.Request request, str config_key)