diff --git a/homeassistant/components/homematic/__init__.py b/homeassistant/components/homematic/__init__.py index 635be9ed172..c87e2926ae8 100644 --- a/homeassistant/components/homematic/__init__.py +++ b/homeassistant/components/homematic/__init__.py @@ -76,7 +76,7 @@ HM_DEVICE_TYPES = { 'IPSmoke', 'RFSiren', 'PresenceIP', 'IPAreaThermostat', 'IPWeatherSensor', 'RotaryHandleSensorIP', 'IPPassageSensor', 'IPKeySwitchPowermeter', 'IPThermostatWall230V', 'IPWeatherSensorPlus', - 'IPWeatherSensorBasic'], + 'IPWeatherSensorBasic', 'IPBrightnessSensor'], DISCOVER_CLIMATE: [ 'Thermostat', 'ThermostatWall', 'MAXThermostat', 'ThermostatWall2', 'MAXWallThermostat', 'IPThermostat', 'IPThermostatWall', diff --git a/homeassistant/components/sensor/homematic.py b/homeassistant/components/sensor/homematic.py index 8495286c143..26fa76d94a9 100644 --- a/homeassistant/components/sensor/homematic.py +++ b/homeassistant/components/sensor/homematic.py @@ -48,6 +48,10 @@ HM_UNIT_HA_CAST = { 'GAS_POWER': 'm3', 'GAS_ENERGY_COUNTER': 'm3', 'LUX': 'lx', + 'CURRENT_ILLUMINATION': 'lx', + 'AVERAGE_ILLUMINATION': 'lx', + 'LOWEST_ILLUMINATION': 'lx', + 'HIGHEST_ILLUMINATION': 'lx', 'RAIN_COUNTER': 'mm', 'WIND_SPEED': 'km/h', 'WIND_DIRECTION': '°', @@ -64,6 +68,10 @@ HM_ICON_HA_CAST = { 'TEMPERATURE': 'mdi:thermometer', 'ACTUAL_TEMPERATURE': 'mdi:thermometer', 'LUX': 'mdi:weather-sunny', + 'CURRENT_ILLUMINATION': 'mdi:weather-sunny', + 'AVERAGE_ILLUMINATION': 'mdi:weather-sunny', + 'LOWEST_ILLUMINATION': 'mdi:weather-sunny', + 'HIGHEST_ILLUMINATION': 'mdi:weather-sunny', 'BRIGHTNESS': 'mdi:invert-colors', 'POWER': 'mdi:flash-red-eye', 'CURRENT': 'mdi:flash-red-eye',