mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Add OTGW_ variables to list of supported sensors.
This commit is contained in:
@@ -80,7 +80,7 @@ async def connect_and_subscribe(hass, device_path, gateway):
|
||||
|
||||
|
||||
async def setup_monitored_vars(hass, monitored_vars):
|
||||
"""Setup requested sensors."""
|
||||
"""Set up requested sensors."""
|
||||
gw_vars = hass.data[DATA_OPENTHERM_GW][DATA_GW_VARS]
|
||||
# Use dict to prepare for binary sensor support.
|
||||
sensor_type_map = {
|
||||
@@ -131,6 +131,24 @@ async def setup_monitored_vars(hass, monitored_vars):
|
||||
gw_vars.DATA_MASTER_PRODUCT_VERSION,
|
||||
gw_vars.DATA_SLAVE_PRODUCT_TYPE,
|
||||
gw_vars.DATA_SLAVE_PRODUCT_VERSION,
|
||||
gw_vars.OTGW_MODE,
|
||||
gw_vars.OTGW_DHW_OVRD,
|
||||
gw_vars.OTGW_ABOUT,
|
||||
gw_vars.OTGW_BUILD,
|
||||
gw_vars.OTGW_CLOCKMHZ,
|
||||
gw_vars.OTGW_LED_A,
|
||||
gw_vars.OTGW_LED_B,
|
||||
gw_vars.OTGW_LED_C,
|
||||
gw_vars.OTGW_LED_D,
|
||||
gw_vars.OTGW_LED_E,
|
||||
gw_vars.OTGW_LED_F,
|
||||
gw_vars.OTGW_GPIO_A,
|
||||
gw_vars.OTGW_GPIO_B,
|
||||
gw_vars.OTGW_SB_TEMP,
|
||||
gw_vars.OTGW_SETP_OVRD_MODE,
|
||||
gw_vars.OTGW_SMART_PWR,
|
||||
gw_vars.OTGW_THRM_DETECT,
|
||||
gw_vars.OTGW_VREF,
|
||||
]
|
||||
}
|
||||
sensors = []
|
||||
|
@@ -124,6 +124,27 @@ async def async_setup_platform(hass, config, async_add_entities,
|
||||
gw_vars.DATA_SLAVE_PRODUCT_TYPE: [None, None, "Boiler Product Type"],
|
||||
gw_vars.DATA_SLAVE_PRODUCT_VERSION: [
|
||||
None, None, "Boiler Product Version"],
|
||||
gw_vars.OTGW_MODE: [None, None, "Gateway/Monitor Mode"],
|
||||
gw_vars.OTGW_DHW_OVRD: [None, None, "Gateway Hot Water Override Mode"],
|
||||
gw_vars.OTGW_ABOUT: [None, None, "Gateway Firmware Version"],
|
||||
gw_vars.OTGW_BUILD: [None, None, "Gateway Firmware Build"],
|
||||
gw_vars.OTGW_CLOCKMHZ: [None, None, "Gateway Clock Speed"],
|
||||
gw_vars.OTGW_LED_A: [None, None, "Gateway LED A Mode"],
|
||||
gw_vars.OTGW_LED_B: [None, None, "Gateway LED B Mode"],
|
||||
gw_vars.OTGW_LED_C: [None, None, "Gateway LED C Mode"],
|
||||
gw_vars.OTGW_LED_D: [None, None, "Gateway LED D Mode"],
|
||||
gw_vars.OTGW_LED_E: [None, None, "Gateway LED E Mode"],
|
||||
gw_vars.OTGW_LED_F: [None, None, "Gateway LED F Mode"],
|
||||
gw_vars.OTGW_GPIO_A: [None, None, "Gateway GPIO A Mode"],
|
||||
gw_vars.OTGW_GPIO_B: [None, None, "Gateway GPIO B Mode"],
|
||||
gw_vars.OTGW_SB_TEMP: [
|
||||
DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS,
|
||||
"Gateway Setback Temperature"],
|
||||
gw_vars.OTGW_SETP_OVRD_MODE: [
|
||||
None, None, "Gateway Room Setpoint Override Mode"],
|
||||
gw_vars.OTGW_SMART_PWR: [None, None, "Gateway Smart Power Mode"],
|
||||
gw_vars.OTGW_THRM_DETECT: [None, None, "Gateway Thermostat Detection"],
|
||||
gw_vars.OTGW_VREF: [None, None, "Gateway Reference Voltage Setting"],
|
||||
}
|
||||
sensors = []
|
||||
for var in discovery_info:
|
||||
|
Reference in New Issue
Block a user