iMicknl / ha-tahoma

Custom component for Home Assistant to interact with smart devices via Somfy TaHoma or other OverKiz based API's.
MIT License
152 stars 30 forks source link

io:OperatingModeCapabilitiesState V40WaterVolumeEstimationState contains wrong value #782

Closed jncanches closed 2 years ago

jncanches commented 2 years ago

Did you read the instructions?

The problem

The sensor V40WaterVolumeEstimationState contains the total of water since the begining of the water heater instead of the remaining estimation of 40°C water.

The sensor WaterConsumptionState is always unknown instead of the total of water since the begining of the water heater.

See below for the last diagnostics.

Thank you :)

What version of this integration (ha-tahoma) has the issue?

2.13.0

What version of Home Assistant Core has the issue?

2022.2.8

Which gateway / hub do you use?

CozyTouch

Device model

E722804

Home Assistant log

Diagnostics ``` { "home_assistant": { "installation_type": "Home Assistant Container", "version": "2022.2.8", "dev": false, "hassio": false, "virtualenv": false, "python_version": "3.9.7", "docker": true, "arch": "x86_64", "timezone": "Europe/Paris", "os_name": "Linux", "os_version": "5.10.28-Unraid", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.23.0", "requirements": [ "aiogithubapi>=21.11.0" ] }, "tahoma": { "version": "2.13.0", "requirements": [ "pyoverkiz==1.3.6" ] } }, "integration_manifest": { "domain": "tahoma", "name": "Overkiz (by Somfy) - Custom component", "iot_class": "cloud_polling", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/tahoma", "requirements": [ "pyoverkiz==1.3.6" ], "codeowners": [ "@imicknl", "@vlebourl", "@tetienne" ], "issue_tracker": "https://github.com/imicknl/ha-tahoma/issues", "version": "2.13.0", "zeroconf": [ "_kizbox._tcp.local." ], "dhcp": [ { "hostname": "gateway*", "macaddress": "F8811A*" } ], "is_built_in": false }, "data": { "creationTime": 1615750162000, "lastUpdateTime": 1615750162000, "id": "SETUP-****-****-9786", "location": { "creationTime": 1615750162000, "lastUpdateTime": 1635544068000, "city": "**", "country": "**", "postalCode": "**", "addressLine1": "**", "timezone": "Europe/Paris", "longitude": "**", "latitude": "**", "twilightMode": 2, "twilightAngle": "CIVIL", "twilightCity": "paris", "summerSolsticeDuskMinutes": 1290, "winterSolsticeDuskMinutes": 990, "twilightOffsetEnabled": false, "dawnOffset": 0, "duskOffset": 0, "tariffSettings": { "tariffMode": "base" }, "countryCode": "FR" }, "gateways": [ { "gatewayId": "****-****-9786", "type": 32, "subType": 0, "placeOID": "****-****-353a", "alive": true, "timeReliable": true, "connectivity": { "status": "OK", "protocolVersion": "2021.6.4" }, "upToDate": true, "updateStatus": "UP_TO_DATE", "syncInProgress": false, "mode": "ACTIVE", "functions": "INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_AUTO_LAUNCHING,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS" } ], "devices": [ { "creationTime": 1615750162000, "lastUpdateTime": 1615750162000, "label": "**", "deviceURL": "internal://****-****-9786/pod/0", "shortcut": false, "controllableName": "internal:PodMiniComponent", "definition": { "commands": [ { "commandName": "getName", "nparams": 0 }, { "commandName": "update", "nparams": 0 }, { "commandName": "setCountryCode", "nparams": 1 }, { "commandName": "activateCalendar", "nparams": 0 }, { "commandName": "deactivateCalendar", "nparams": 0 }, { "commandName": "refreshPodMode", "nparams": 0 }, { "commandName": "refreshUpdateStatus", "nparams": 0 }, { "commandName": "setCalendar", "nparams": 1 }, { "commandName": "setLightingLedPodMode", "nparams": 1 }, { "commandName": "setPodLedOff", "nparams": 0 }, { "commandName": "setPodLedOn", "nparams": 0 } ], "states": [ { "type": "DiscreteState", "values": [ "offline", "online" ], "qualifiedName": "core:ConnectivityState" }, { "type": "DataState", "qualifiedName": "core:CountryCodeState" }, { "type": "DataState", "qualifiedName": "core:LocalIPv4AddressState" }, { "type": "DataState", "qualifiedName": "core:NameState" }, { "type": "DiscreteState", "values": [ "doublePress", "longPress", "simplePress", "triplePress", "veryLongPress" ], "qualifiedName": "internal:LastActionConfigButtonState" }, { "type": "ContinuousState", "qualifiedName": "internal:LightingLedPodModeState" } ], "dataProperties": [], "widgetName": "Pod", "uiProfiles": [ "UpdatableComponent" ], "uiClass": "Pod", "qualifiedName": "internal:PodMiniComponent", "type": "ACTUATOR" }, "states": [ { "name": "core:NameState", "type": 3, "value": "**" }, { "name": "internal:LightingLedPodModeState", "type": 2, "value": 1.0 }, { "name": "core:CountryCodeState", "type": 3, "value": "FR" }, { "name": "core:LocalIPv4AddressState", "type": 3, "value": "192.168.0.73" } ], "available": true, "enabled": true, "placeOID": "7adb34a4-c294-4eff-9b6f-35e7b909353a", "type": 1, "widget": "Pod", "oid": "89b28346-982d-412c-8848-bd05637703e8", "uiClass": "Pod" }, { "creationTime": 1615750281000, "lastUpdateTime": 1615750281000, "label": "** *(**)*", "deviceURL": "io://****-****-9786/2112903", "shortcut": false, "controllableName": "io:StackComponent", "definition": { "commands": [ { "commandName": "advancedSomfyDiscover", "nparams": 1 }, { "commandName": "discover1WayController", "nparams": 2 }, { "commandName": "discoverActuators", "nparams": 1 }, { "commandName": "discoverSensors", "nparams": 1 }, { "commandName": "discoverSomfyUnsetActuators", "nparams": 0 }, { "commandName": "joinNetwork", "nparams": 0 }, { "commandName": "resetNetworkSecurity", "nparams": 0 }, { "commandName": "shareNetwork", "nparams": 0 } ], "states": [], "dataProperties": [], "widgetName": "IOStack", "uiProfiles": [ "Specific" ], "uiClass": "ProtocolGateway", "qualifiedName": "io:StackComponent", "type": "PROTOCOL_GATEWAY" }, "available": true, "enabled": true, "placeOID": "****-****-353a", "type": 5, "widget": "IOStack", "oid": "****-****-0fbf", "uiClass": "ProtocolGateway" }, { "creationTime": 1615750288000, "lastUpdateTime": 1615750288000, "label": "** **", "deviceURL": "io://****-****-9786/5482352#1", "shortcut": false, "controllableName": "io:AtlanticDomesticHotWaterProductionV2_CETHI_V4_IOComponent", "definition": { "commands": [ { "commandName": "advancedRefresh", "nparams": 1 }, { "commandName": "delayedStopIdentify", "nparams": 1 }, { "commandName": "getName", "nparams": 0 }, { "commandName": "identify", "nparams": 0 }, { "commandName": "refreshManufacturerName", "nparams": 0 }, { "commandName": "refreshTargetTemperature", "nparams": 0 }, { "commandName": "refreshWaterConsumption", "nparams": 0 }, { "commandName": "setComfortTargetTemperature", "nparams": 1 }, { "commandName": "setDateTime", "nparams": 1 }, { "commandName": "setEcoTargetTemperature", "nparams": 1 }, { "commandName": "setFrostProtectionTargetTemperature", "nparams": 1 }, { "commandName": "setName", "nparams": 1 }, { "commandName": "setTargetTemperature", "nparams": 1 }, { "commandName": "startIdentify", "nparams": 0 }, { "commandName": "stopIdentify", "nparams": 0 }, { "commandName": "wink", "nparams": 1 }, { "commandName": "pairOneWayController", "nparams": 2 }, { "commandName": "refreshAntiLegionellosis", "nparams": 0 }, { "commandName": "refreshAwayModeDuration", "nparams": 0 }, { "commandName": "refreshBoilerInstallationOption", "nparams": 0 }, { "commandName": "refreshBoostModeDuration", "nparams": 0 }, { "commandName": "refreshCurrentOperatingMode", "nparams": 0 }, { "commandName": "refreshDHWCapacity", "nparams": 0 }, { "commandName": "refreshDHWError", "nparams": 0 }, { "commandName": "refreshDHWMode", "nparams": 0 }, { "commandName": "refreshElectricalExtraManagement", "nparams": 0 }, { "commandName": "refreshExtractionOption", "nparams": 0 }, { "commandName": "refreshInstallation", "nparams": 0 }, { "commandName": "refreshMiddleWaterTemperature", "nparams": 0 }, { "commandName": "refreshOperatingModeCapabilities", "nparams": 0 }, { "commandName": "refreshOperatingRange", "nparams": 0 }, { "commandName": "refreshOperatingTime", "nparams": 0 }, { "commandName": "refreshProgrammingSlots", "nparams": 0 }, { "commandName": "refreshRateManagement", "nparams": 0 }, { "commandName": "refreshSmartGridOption", "nparams": 0 }, { "commandName": "setAntiLegionellosis", "nparams": 1 }, { "commandName": "setAwayModeDuration", "nparams": 1 }, { "commandName": "setBoilerInstallationOption", "nparams": 1 }, { "commandName": "setBoostModeDuration", "nparams": 1 }, { "commandName": "setCurrentOperatingMode", "nparams": 1 }, { "commandName": "setDHWMode", "nparams": 1 }, { "commandName": "setElectricalExtraManagement", "nparams": 1 }, { "commandName": "setExtractionOption", "nparams": 1 }, { "commandName": "setHaltedTargetTemperature", "nparams": 1 }, { "commandName": "setInstallation", "nparams": 1 }, { "commandName": "setOperatingRange", "nparams": 1 }, { "commandName": "setProgrammingSlots", "nparams": 1 }, { "commandName": "setRateManagement", "nparams": 1 }, { "commandName": "setSmartGridOption", "nparams": 1 }, { "commandName": "unpairAllOneWayControllers", "nparams": 0 }, { "commandName": "unpairOneWayController", "nparams": 2 } ], "states": [ { "type": "ContinuousState", "qualifiedName": "core:BoostModeDurationState" }, { "type": "ContinuousState", "qualifiedName": "core:ComfortTargetTemperatureState" }, { "type": "ContinuousState", "qualifiedName": "core:DHWPSoftwareVersionState" }, { "type": "DataState", "qualifiedName": "core:DateTimeState" }, { "type": "DiscreteState", "values": [ "good", "low", "normal", "verylow" ], "qualifiedName": "core:DiscreteRSSILevelState" }, { "type": "ContinuousState", "qualifiedName": "core:EcoTargetTemperatureState" }, { "type": "ContinuousState", "qualifiedName": "core:FrostProtectionTargetTemperatureState" }, { "type": "ContinuousState", "qualifiedName": "core:HaltedTargetTemperatureState" }, { "type": "DataState", "qualifiedName": "core:ManufacturerNameState" }, { "type": "ContinuousState", "qualifiedName": "core:MaximalShowerManualModeState" }, { "type": "ContinuousState", "qualifiedName": "core:MaximalTemperatureManualModeState" }, { "type": "ContinuousState", "qualifiedName": "core:MinimalShowerManualModeState" }, { "type": "ContinuousState", "qualifiedName": "core:MinimalTemperatureManualModeState" }, { "type": "DataState", "qualifiedName": "core:NameState" }, { "type": "ContinuousState", "qualifiedName": "core:NumberOfTankState" }, { "type": "DiscreteState", "values": [ "antifreeze", "auto", "away", "eco", "frostprotection", "manual", "max", "normal", "off", "on", "prog", "program", "boost" ], "qualifiedName": "core:OperatingModeState" }, { "type": "ContinuousState", "qualifiedName": "core:PriorityLockTimerState" }, { "type": "ContinuousState", "qualifiedName": "core:RSSILevelState" }, { "type": "ContinuousState", "qualifiedName": "core:SecuredPositionTemperatureState" }, { "type": "DiscreteState", "values": [ "available", "unavailable" ], "qualifiedName": "core:StatusState" }, { "type": "ContinuousState", "qualifiedName": "core:TargetTemperatureState" }, { "type": "ContinuousState", "qualifiedName": "core:TemperatureState" }, { "type": "DataState", "qualifiedName": "core:V40WaterVolumeEstimationState" }, { "type": "ContinuousState", "qualifiedName": "core:VersionState" }, { "type": "ContinuousState", "qualifiedName": "core:WaterConsumptionState" }, { "type": "ContinuousState", "qualifiedName": "io:AntiLegionellosisState" }, { "type": "ContinuousState", "qualifiedName": "io:AwayModeDurationState" }, { "type": "DiscreteState", "values": [ "boilerOptimising", "boilerPriority", "heatPumpOptimising", "heatPumpPriority" ], "qualifiedName": "io:BoilerInstallationOptionState" }, { "type": "ContinuousState", "qualifiedName": "io:DHWCapacityState" }, { "type": "DataState", "qualifiedName": "io:DHWErrorState" }, { "type": "DiscreteState", "values": [ "autoMode", "manualEcoActive", "manualEcoInactive" ], "qualifiedName": "io:DHWModeState" }, { "type": "ContinuousState", "qualifiedName": "io:ElectricBoosterOperatingTimeState" }, { "type": "DiscreteState", "values": [ "auto", "deactive" ], "qualifiedName": "io:ElectricalExtraManagementState" }, { "type": "DiscreteState", "values": [ "fastExtractionSpeed", "lowExtractionSpeed", "noExtraction" ], "qualifiedName": "io:ExtractionOptionState" }, { "type": "ContinuousState", "qualifiedName": "io:HeatPumpOperatingTimeState" }, { "type": "DiscreteState", "values": [ "extraBoiler", "extraSolar", "onlyThermodynamic" ], "qualifiedName": "io:InstallationState" }, { "type": "ContinuousState", "qualifiedName": "io:MiddleWaterTemperatureState" }, { "type": "DataState", "qualifiedName": "io:OperatingModeCapabilitiesState" }, { "type": "DiscreteState", "values": [ "pac24h_elec24h", "pacProg_elecProg" ], "qualifiedName": "io:OperatingRangeState" }, { "type": "DataState", "qualifiedName": "io:PowerConsumptionFanState" }, { "type": "DataState", "qualifiedName": "io:PowerHeatElectricalState" }, { "type": "DataState", "qualifiedName": "io:PowerHeatPumpState" }, { "type": "DiscreteState", "values": [ "comfortLevel1", "comfortLevel2", "comfortLevel3", "comfortLevel4", "environmentProtection", "humanProtection", "userLevel1", "userLevel2" ], "qualifiedName": "io:PriorityLockLevelState" }, { "type": "DiscreteState", "values": [ "LSC", "SAAC", "SFC", "UPS", "externalGateway", "localUser", "myself", "rain", "security", "temperature", "timer", "user", "wind" ], "qualifiedName": "io:PriorityLockOriginatorState" }, { "type": "DataState", "qualifiedName": "io:ProgrammingSlotsState" }, { "type": "DiscreteState", "values": [ "forbidden", "no", "recommended", "unsuitable", "wanted" ], "qualifiedName": "io:RateManagementState" }, { "type": "DiscreteState", "values": [ "active", "deactive" ], "qualifiedName": "io:SmartGridOptionState" } ], "dataProperties": [ { "value": "500", "qualifiedName": "core:identifyInterval" } ], "widgetName": "DomesticHotWaterProduction", "uiProfiles": [ "StatefulThermostatWithSensor", "StatefulThermostat", "Thermostat", "WaterConsumption" ], "uiClass": "WaterHeatingSystem", "qualifiedName": "io:AtlanticDomesticHotWaterProductionV2_CETHI_V4_IOComponent", "type": "ACTUATOR" }, "states": [ { "name": "core:NameState", "type": 3, "value": "** **" }, { "name": "core:VersionState", "type": 3, "value": "45373232383034202020" }, { "name": "core:PriorityLockTimerState", "type": 1, "value": 0 }, { "name": "core:StatusState", "type": 3, "value": "available" }, { "name": "core:DiscreteRSSILevelState", "type": 3, "value": "normal" }, { "name": "core:RSSILevelState", "type": 2, "value": 68.0 }, { "name": "io:RateManagementState", "type": 3, "value": "?" }, { "name": "io:OperatingModeCapabilitiesState", "type": 11, "value": { "relaunch": 1, "absence": 1, "rateManagement": 0, "energyDemandStatus": 0 } }, { "name": "core:OperatingModeState", "type": 11, "value": { "relaunch": "off", "absence": "off" } }, { "name": "io:DHWErrorState", "type": 11, "value": { "code": 255, "minor": 255, "family": "W", "type": 0 } }, { "name": "io:HeatPumpOperatingTimeState", "type": 1, "value": 1470 }, { "name": "io:ElectricBoosterOperatingTimeState", "type": 1, "value": 0 }, { "name": "io:DHWModeState", "type": 3, "value": "manualEcoInactive" }, { "name": "core:TemperatureState", "type": 2, "value": 62.0 }, { "name": "core:TargetTemperatureState", "type": 2, "value": 62.0 }, { "name": "io:OperatingRangeState", "type": 3, "value": "pac24h_elec24h" }, { "name": "io:ProgrammingSlotsState", "type": 11, "value": { "slot2": { "start": "12:00", "end": "16:00" }, "slot1": { "start": "22:00", "end": "06:00" } } }, { "name": "io:AntiLegionellosisState", "type": 1, "value": 0 }, { "name": "io:ElectricalExtraManagementState", "type": 3, "value": "deactive" }, { "name": "io:SmartGridOptionState", "type": 3, "value": "deactive" }, { "name": "io:MiddleWaterTemperatureState", "type": 2, "value": 59.1 }, { "name": "core:V40WaterVolumeEstimationState", "type": 1, "value": 53126 }, { "name": "io:PowerHeatElectricalState", "type": 1, "value": 393 }, { "name": "io:PowerHeatPumpState", "type": 1, "value": 2168 }, { "name": "core:DateTimeState", "type": 11, "value": { "month": 2, "hour": 4, "year": 2022, "weekday": 2, "day": 23, "minute": 9, "second": 48 } }, { "name": "core:BoostModeDurationState", "type": 1, "value": 0 }, { "name": "io:AwayModeDurationState", "type": 3, "value": "0" }, { "name": "core:ManufacturerNameState", "type": 3, "value": "Thermor" }, { "name": "io:DHWCapacityState", "type": 1, "value": 250 } ], "attributes": [ { "name": "core:FirmwareRevision", "type": 3, "value": "E722804" }, { "name": "core:Manufacturer", "type": 3, "value": "Atlantic Group" } ], "available": true, "enabled": true, "placeOID": "7adb34a4-c294-4eff-9b6f-35e7b909353a", "type": 1, "widget": "DomesticHotWaterProduction", "oid": "778e904c-fdf6-475d-a4a8-c1ebbcbb2a3b", "uiClass": "WaterHeatingSystem" }, { "creationTime": 1615750288000, "lastUpdateTime": 1615750288000, "label": "** *(**#**)*", "deviceURL": "io://****-****-9786/5482352#2", "shortcut": false, "controllableName": "io:DHWCumulatedElectricalEnergyConsumptionIOSystemDeviceSensor", "definition": { "commands": [ { "commandName": "refreshElectricEnergyConsumption", "nparams": 0 } ], "states": [ { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff0State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff1State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff2State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff3State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff4State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff5State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff6State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff7State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff8State" }, { "type": "ContinuousState", "qualifiedName": "core:ConsumptionTariff9State" }, { "type": "ContinuousState", "qualifiedName": "core:ElectricEnergyConsumptionState" }, { "type": "DiscreteState", "values": [ "available", "unavailable" ], "qualifiedName": "core:StatusState" } ], "dataProperties": [], "widgetName": "CumulativeElectricPowerConsumptionSensor", "uiProfiles": [ "ElectricEnergyConsumption" ], "uiClass": "ElectricitySensor", "qualifiedName": "io:DHWCumulatedElectricalEnergyConsumptionIOSystemDeviceSensor", "type": "SENSOR" }, "states": [ { "name": "core:StatusState", "type": 3, "value": "available" }, { "name": "core:ElectricEnergyConsumptionState", "type": 1, "value": 723457 }, { "name": "core:ConsumptionTariff0State", "type": 1, "value": 715970 } ], "attributes": [ { "name": "core:FirmwareRevision", "type": 3, "value": "E722804" }, { "name": "core:Manufacturer", "type": 3, "value": "Atlantic Group" }, { "name": "core:PowerSourceType", "type": 3, "value": "mainSupply" }, { "name": "core:MeasuredValueType", "type": 3, "value": "core:ElectricalEnergyInWh" } ], "available": true, "enabled": true, "placeOID": "****-****-353a", "type": 2, "widget": "CumulativeElectricPowerConsumptionSensor", "oid": "****-****-42b6", "uiClass": "ElectricitySensor" } ], "zones": [], "resellerDelegationType": "NEVER", "oid": "****-****-5811", "rootPlace": { "creationTime": 1615750162000, "lastUpdateTime": 1615750162000, "label": "** **", "type": 0, "oid": "****-****-353a", "subPlaces": [] }, "features": [] } } ```

Additional information

No response

tetienne commented 2 years ago

Hi,

This component only output what Overkiz API returns. Taking your logs:

{
            "name": "core:V40WaterVolumeEstimationState",
            "type": 1,
            "value": 53126
          },

If the above value is not correct, and you see it into the official application, you can contact Atlantic to report the issue.

WaterConsumptionState is not exposed, but well defined.

jncanches commented 2 years ago

I see. Overkiz API is weird ~~ I will report this issue to them. It is not really a big deal by the way.

Thank you !