diff --git a/custom_components/alpha_innotec/base_coordinator.py b/custom_components/alpha_innotec/base_coordinator.py index f93dc8a..88b2d28 100644 --- a/custom_components/alpha_innotec/base_coordinator.py +++ b/custom_components/alpha_innotec/base_coordinator.py @@ -6,7 +6,7 @@ from homeassistant.core import HomeAssistant from . import GatewayAPI -from .const import MODULE_TYPE_SENSOR +from .const import MODULE_TYPE_SENSOR, MODULE_TYPE_SENSE_CONTROL from .controller_api import ControllerAPI from .structs.Thermostat import Thermostat @@ -42,6 +42,9 @@ async def get_thermostats(hass: HomeAssistant, gateway_api: GatewayAPI, controll if module_details["type"] == MODULE_TYPE_SENSOR: current_temperature = module_details["currentTemperature"] battery_percentage = module_details["battery"] + elif module_details["type"] == MODULE_TYPE_SENSE_CONTROL: + current_temperature = module_details["currentTemperature"] + battery_percentage = module_details["battery"] thermostat = Thermostat( identifier=room_id, diff --git a/custom_components/alpha_innotec/const.py b/custom_components/alpha_innotec/const.py index 0c7511a..a8b7100 100644 --- a/custom_components/alpha_innotec/const.py +++ b/custom_components/alpha_innotec/const.py @@ -11,8 +11,10 @@ MODULE_TYPE_FLOOR = "floor" MODULE_TYPE_SENSOR = "sensor" +MODULE_TYPE_SENSE_CONTROL = "sense_control" MODULE_TYPES = [ MODULE_TYPE_FLOOR, - MODULE_TYPE_SENSOR + MODULE_TYPE_SENSOR, + MODULE_TYPE_SENSE_CONTROL ]