biker91620 / ha-cozytouch

Cozytouch support for Home Assistant
GNU General Public License v2.0
16 stars 22 forks source link

Thermor WaterHeater Features #18

Open creativeosmose opened 4 years ago

creativeosmose commented 4 years ago

Hi,

Thanks to the help of the community, I have my water heaters displayed in HomeAssistant (via HACS). They (the water heaters) appear as DHWP actuators.

I can change the target temperature (which does not seem to have any effect) and the operation mode but I can’t see the remaining showers and boost mode. Plus, the away mode is not working (error message: Failed to call service water_heater/set_away_mode. Unsupported command DeviceCommand.SET_DWH_MODE)

I checked the code and these should be available. I tried changing some of the attributes to end up with something matching the API, but can't seem to make it work.

Below are the states and commands of the thermor. Any clue on what I'm doing wrong? I'm willing to help of course:)

Thanks!

core:AbsenceEndDateState
core:AbsenceStartDateState
core:BoostElectricPowerConsumptionState 0
core:BoostEndDateState {"month":"??","hour":0,"year":0,"weekday":0,"day":"??","minute":0,"second":0}
core:BoostModeDurationState
core:BoostStartDateState {"month":"??","hour":0,"year":0,"weekday":0,"day":"??","minute":0,"second":0}
core:BottomTankWaterTemperatureState 0
core:ComfortTargetTemperatureState
core:ControlWaterTargetTemperatureState 7
core:DHWPSoftwareVersionState MALICIO
core:DateTimeState {"month":2,"hour":13,"year":2020,"weekday":1,"day":25,"minute":49,"second":7}
core:EcoTargetTemperatureState
core:ExpectedNumberOfShowerState 2
core:FrostProtectionTargetTemperatureState
core:HaltedTargetTemperatureState
core:HeatingStatusState off
core:ManufacturerNameState Thermor
core:MaximalShowerManualModeState 4
core:MaximalTemperatureManualModeState 70
core:MiddleWaterTemperatureInState 20.2
core:MinimalShowerManualModeState 2
core:MinimalTemperatureManualModeState 50
core:NameState DHWP Actuator
core:NumberOfShowerRemainingState 0
core:NumberOfTankState 2
core:OperatingModeState (antifreeze,auto,away,eco,frostprotection,manual,max,normal,off,on,prog,program) {"relaunch":"Not_Used","absence":"Not_Used"}
core:PowerHeatElectricalInState 0
core:PriorityLockTimerState
core:ProgrammingAvailableState 0
core:RSSILevelState 94
core:SecuredPositionTemperatureState
core:StatusState (available,unavailable) available
core:StopRelaunchState Relaunch Enable
core:TargetTemperatureState 20
core:TemperatureState 20
core:V40WaterVolumeEstimationState 1310
core:VersionState 41373532303031202020
core:WaterConsumptionState 0
core:WaterTargetTemperatureState 60
core:WaterTemperatureState 60
io:AntiLegionellosisState 1
io:AwayModeDurationState
io:BoilerInstallationOptionState (boilerOptimising,boilerPriority,heatPumpOptimising,heatPumpPriority)
io:DHWAbsenceModeState (off,on,prog) on
io:DHWBoostModeState (off,on,prog) off
io:DHWCapacityState 80
io:DHWErrorState {"code":255,"minor":255,"family":"W","type":4}
io:DHWModeState (autoMode,manualEcoActive,manualEcoInactive) autoMode
io:ElectricBoosterOperatingTimeState 12
io:ElectricalExtraManagementState (auto,deactive)
io:ExtractionOptionState (fastExtractionSpeed,lowExtractionSpeed,noExtraction)
io:HeatPumpOperatingTimeState 0
io:InstallationState (extraBoiler,extraSolar,onlyThermodynamic)
io:MiddleWaterTemperatureState 20.2
io:OperatingModeCapabilitiesState {"relaunch":1,"absence":1,"rateManagement":1,"energyDemandStatus":0}
io:OperatingRangeState (pac24h_elec24h,pacProg_elecProg) pac24h_elec24h
io:PowerConsumptionFanState
io:PowerHeatElectricalState 0
io:PowerHeatPumpState 0
io:PriorityLockLevelState (comfortLevel1,comfortLevel2,comfortLevel3,comfortLevel4,environmentProtection,humanProtection,userLevel1,userLevel2)
io:PriorityLockOriginatorState (LSC,SAAC,SFC,UPS,externalGateway,localUser,myself,rain,security,temperature,timer,user,wind)
io:ProgrammingSlotsState {"slot2":{"start":"00:00","end":"00:00"},"slot1":{"start":"22:00","end":"06:00"}}
io:RateManagementState (forbidden,no,recommended,unsuitable,wanted) ?
io:SmartGridOptionState (active,deactive)
Commands
delayedStopIdentify + 1 parameter
getName
identify
refreshAbsenceEndDate
refreshAbsenceMode
refreshAbsenceStartDate
refreshBoostEndDate
refreshBoostMode
refreshBoostStartDate
refreshBottomTankWaterTemperature
refreshManufacturerName
refreshMiddleWaterTemperatureIn
refreshTargetTemperature
refreshWaterConsumption
refreshWaterTargetTemperature
refreshWaterTemperature
setAbsenceEndDate + 1 parameter
setAbsenceMode + 1 parameter
setAbsenceStartDate + 1 parameter
setBoostEndDate + 1 parameter
setBoostMode + 1 parameter
setBoostStartDate + 1 parameter
setComfortTargetTemperature + 1 parameter
setDateTime + 1 parameter
setEcoTargetTemperature + 1 parameter
setExpectedNumberOfShower + 1 parameter
setFrostProtectionTargetTemperature + 1 parameter
setName + 1 parameter
setTargetTemperature + 1 parameter
setWaterTargetTemperature + 1 parameter
setWaterTemperature + 1 parameter
startIdentify
stopIdentify
wink + 1 parameter
refreshExpectedNumberOfShower
refreshAntiLegionellosis
refreshAwayModeDuration
refreshBoilerInstallationOption
refreshBoostModeDuration
refreshCurrentOperatingMode
refreshDHWCapacity
refreshDHWError
refreshDHWMode
refreshElectricalExtraManagement
refreshExtractionOption
refreshInstallation
refreshMiddleWaterTemperature
refreshOperatingModeCapabilities
refreshOperatingRange
refreshOperatingTime
refreshProgrammingSlots
refreshRateManagement
refreshSmartGridOption
setAntiLegionellosis + 1 parameter
setAwayModeDuration + 1 parameter
setBoilerInstallationOption + 1 parameter
setBoostModeDuration + 1 parameter
setCurrentOperatingMode + 1 parameter
setDHWMode + 1 parameter
setElectricalExtraManagement + 1 parameter
setExtractionOption + 1 parameter
setHaltedTargetTemperature + 1 parameter
setInstallation + 1 parameter
setOperatingRange + 1 parameter
setProgrammingSlots + 1 parameter
setRateManagement + 1 parameter
setSmartGridOption + 1 parameter
creativeosmose commented 4 years ago

Hi All,

Can anyone help on this one please? I can't seem to apply the correct changes.

Thanks!

cyr-ius commented 4 years ago

I am looking at your problem

creativeosmose commented 4 years ago

Thank you so much! Feel free to ask, if I can help!

cyr-ius commented 4 years ago

have just delivered a version which shows the number of showers remaining and the boost mode ranges. When you say that Away mode doesn't work, I think it calls Absence mode (DHWAbsenceModeState) ?

creativeosmose commented 4 years ago

Yes I think it's indeed Absence Mode. I checked 1.4.1, I don't see the changes, is it the correct version? No changes on 1.4.1b either.

By the way I deleted and reconfigured the integration from scratch for both to make sure fire testing.

creativeosmose commented 4 years ago

@Cyr-ius is there a specific version I should use? Thanks,

creativeosmose commented 4 years ago

Anything I can help with? Is there a certain manipulation to do in order to access to the # of showers remaining or boost mode? Thanks,

creativeosmose commented 4 years ago

@Cyr-ius can I help you with more data or inputs?

cyr-ius commented 4 years ago

Hello , Can you open an issue on my Github I would need the full JSON because I need the name of the Widget and the class. You can put the component in HA in debug mode to recover it.

creativeosmose commented 4 years ago

Hi,

Created on your fork: https://github.com/Cyr-ius/cozytouchpy/issues/9

Thanks,