Great update. Thanks
Will do some testing when im back home.
Great update. Thanks
Will do some testing when im back home.
component show total 6 levels + swing and auto in hass. My Mitsubishi Kaiteki only have 5 levels + swing and auto. Do some models have 6?
I dont think the vane vertical is working. tried to adjust to level 1 and 2 and I see the change is actually done in melcloud ui. But after 20-30 sec it jumps back to level 4 that was the previous setting I had set from Melcloud.
Melcloud looks like this for the Kaiteki Heatpump.
Yes vane adjust is working now
Only Python 3.7 issue left and I think this is ready to be included as an official hass component?
@o0Zz Thanks again for creating and fixing this component.
Fantastic job @o0Zz !! Now we keep the fingers cross to see if this gets implemented in the next versions.
Quick questionâŚis there a way to shorten the communication time with MelCloud ?
@nsoares are you talking about the communication between your air conditioner and melcloud or homeassistant and melcloud ?actually when you change something from homeassitant it will be propagated immediatly. However when you will update your air conditioner with your remote control you will get on maximum 6min of latency 5min caused by the melcloud design itself and +1min caused by the home hassistant plugin which poll the melcloud every minutes. You can reduce this 1 min but you will not be able to reduce the first 5min :/.
@nsoares, I just sent a pull request this evening: https://github.com/home-assistant/home-assistant/pull/17338. In this new version you will be able to configure this time by adding âlease_timeâ in your configuration.yaml, However, you need to know that homeassistant will poll the plugin every minutes, so iâm not sure how to reduce this polling time in homeassistant.
In the last few weeks my component stopped loading. I added a new device at Melcloud, could that be an issue? This is what I get in the logs. Thanks!
File "/config/custom_components/climate/melcloud.py", line 574, in setup_platform
devices = mc.getDevicesList()
File "/config/custom_components/climate/melcloud.py", line 389, in getDevicesList
devices.append( MelCloudDevice(device["DeviceID"], device["BuildingID"], device["DeviceName"], self._authentication) )
File "/config/custom_components/climate/melcloud.py", line 151, in __init__
self._refresh_device_info()
File "/config/custom_components/climate/melcloud.py", line 179, in _refresh_device_info
self._temp_list.append(self._json["RoomTemperature"])
Maybe my issue is related to a new device I added to my Melcloud account, an Ecodan system for heating and hot water. Can that be the case? Hereâs a screenshot of the Melcloud control page:
I see that PR has been rejected because device specific code itâs not moved to PyPI. It would be great to have this plugin officially in Home Assistant
He did respond he dont have time So someone else need to create a new pull request and fix the missing requirements.
Regarding this point, Could you accept the component without this change ?
To be honest with you, I will not have enough time to change this.
I send you this PR because lot of peoples requested it but I was not aware it was so restrictive.If this component doesnât match your requierement I can understand it. Just reject it or let another contributor update it. Unfortunatly, I will not have enough time to do this change.
Thanks for your work on HA.
Best regards,
o0zz
Tried to install the Melcloud plugin yesterday but couldnât get it to work. Then I saw this thread and if I am correct, no one is working on it anymore?
If so, sad to hear, it would be nice to have Melcloud in HAâŚ
Hope someone else catch up on itâŚ
Plugin is working. Just not an official hass component. Also if you are using Python 3.7 it will fail to load.
Okej, Is there any way you can find what my problem is? Running HA in vEnvironment on Ubuntu.
My python version seems to be 3.6.6
Best regards
Richard
Log Details (ERROR)
Thu Oct 25 2018 22:07:22 GMT+0200 (centraleuropeisk sommartid)
Error while setting up platform melcloud
Traceback (most recent call last):
File â/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.pyâ, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File â/usr/lib/python3.6/asyncio/tasks.pyâ, line 358, in wait_for
return fut.result()
File â/usr/lib/python3.6/concurrent/futures/thread.pyâ, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File â/home/homeassistant/.homeassistant/custom_components/climate/melcloud.pyâ, line 574, in setup_platform
devices = mc.getDevicesList()
File â/home/homeassistant/.homeassistant/custom_components/climate/melcloud.pyâ, line 375, in getDevicesList
devices.append( MelCloudDevice(device[âDeviceIDâ], device[âBuildingIDâ], device[âDeviceNameâ], self._authentication) )
File â/home/homeassistant/.homeassistant/custom_components/climate/melcloud.pyâ, line 151, in init
self._refresh_device_info()
File â/home/homeassistant/.homeassistant/custom_components/climate/melcloud.pyâ, line 179, in _refresh_device_info
self._temp_list.append(self._json[âRoomTemperatureâ])
KeyError: âRoomTemperatureâ
After installing i get this issue in HA log:
Timer got out of sync. Resetting
5:32 PM core.py (ERROR)
It happens once a minute. Exacly one time every minute.
When i disable melcloud it goes away. Have you any idea whats causing it?
Maybe my problem is because I have a air/water Heater and then i look through the logs my RoomTemperature seems to be named âRoomTemperatureZone1â there is also others with Zone1 and Zone2 included in the name.
Do you think it would be possible to just replace RoomTemperature with RoomTemperatureZon1 in melcloud.py to get it to work?
âHasThermostatZone1â: True, âHasThermostatZone2â: True, âTemperatureIncrementâ: 0.5, âDefrostModeâ: 0, âHeatPumpFrequencyâ: 0, âMaxSetTemperatureâ: 50.0, âMinSetTemperatureâ: 30.0, âRoomTemperatureZone1â: 21.5, âRoomTemperatureZone2â: -39.0, âOutdoorTemperatureâ: 12.0, âFlowTemperatureâ: 31.5, âFlowTemperatureZone1â: 25.0, âFlowTemperatureZone2â: 25.0, âFlowTemperatureBoilerâ: 25.0, âReturnTemperatureâ: 28.5, âReturnTemperatureZone1â: 25.0, âReturnTemperatureZone2â: 25.0, âReturnTemperatureBoilerâ: 25.0, âBoilerStatusâ: False, âBoosterHeater1Statusâ: False, âBoosterHeater2Statusâ: False, âBoosterHeater2PlusStatusâ: False, âImmersionHeaterStatusâ: False, âWaterPump1Statusâ: False, âWaterPump2Statusâ: False, âWaterPump3Statusâ: False, âValveStatus3Wayâ: False, âValveStatus2Wayâ: False, âWaterPump4Statusâ: False, âValveStatus2Way2aâ: False, âValveStatus2Way2bâ: False, âTankWaterTemperatureâ: 47.0, âUnitStatusâ: 0, âHeatingFunctionEnabledâ: True, âServerTimerEnabledâ: False, âThermostatStatusZone1â: False, âThermostatStatusZone2â: False, âThermostatTypeZone1â: 1, âThermostatTypeZone2â: 2, âEffectiveFlagsâ: 0, âLastEffectiveFlagsâ: 0, âPowerâ: True, âEcoHotWaterâ: False, âOperationModeâ: 0, âOperationModeZone1â: 1, âOperationModeZone2â: 2, âSetTemperatureZone1â: 21.0, âSetTemperatureZone2â: 20.0, âSetTankWaterTemperatureâ: 50.0, âTargetHCTemperatureZone1â: 45.0, âTargetHCTemperatureZone2â: 35.0, âForcedHotWaterModeâ: False, âHolidayModeâ: False, âProhibitHotWaterâ: False, âProhibitHeatingZone1â: False, âProhibitHeatingZone2â: False, âProhibitCoolingZone1â: False, âProhibitCoolingZone2â: False, âServerTimerDesiredâ: False, âSecondaryZoneHeatCurveâ: False, âSetHeatFlowTemperatureZone1â: 45.0, âSetHeatFlowTemperatureZone2â: 0.0, âSetCoolFlowTemperatureZone1â: 0.0, âSetCoolFlowTemperatureZone2â: 0.0, âThermostatTemperatureZone1â: 0.0, âThermostatTemperatureZone2â: 0.0, âDECCReportâ: False, âCSVReport1minâ: False, âZone2Masterâ: False, âDailyEnergyConsumedDateâ: â2018-11-01T00:00:00â, âDailyEnergyProducedDateâ: â2018-11-01T00:00:00â, âCurrentEnergyConsumedâ: 0, âCurrentEnergyProducedâ: 0, âCurrentEnergyModeâ: None, âHeatingEnergyConsumedRate1â: 0, âHeatingEnergyConsumedRate2â: 0, âCoolingEnergyConsumedRate1â: 0, âCoolingEnergyConsumedRate2â: 0, âHotWaterEnergyConsumedRate1â: 0, âHotWaterEnergyConsumedRate2â: 0, âHeatingEnergyProducedRate1â: 0, âHeatingEnergyProducedRate2â: 0, âCoolingEnergyProducedRate1â: 0, âCoolingEnergyProducedRate2â: 0, âHotWaterEnergyProducedRate1â: 0, âHotWaterEnergyProducedRate2â: 0, âErrorCode2Digitâ: 0, âSendSpecialFunctionsâ: 0, âRequestSpecialFunctionsâ: 0, âSpecialFunctionsStateâ: 0, âPendingSendSpecialFunctionsâ: 0, âPendingRequestSpecialFunctionsâ: 0, âHasZone2â: False, âHasSimplifiedZone2â: False, âCanHeatâ: True, âCanCoolâ: False, âHasHotWaterTankâ: True, âCanSetTankTemperatureâ: True, âCanSetEcoHotWaterâ: True, âHasEnergyConsumedMeterâ: True, âHasEnergyProducedMeterâ: True, âCanMeasureEnergyProducedâ: False, âCanMeasureEnergyConsumedâ: False, âZone1InRoomModeâ: False, âZone2InRoomModeâ: False, âZone1InHeatModeâ: True, âZone2InHeatModeâ: True, âZone1InCoolModeâ: False, âZone2InCoolModeâ: False, âAllowDualRoomTemperatureâ: False, âHasEcoCuteSettingsâ: False, âHasFTC45Settingsâ: True, âCanEstimateEnergyUsageâ: True, âCanUseRoomTemperatureCoolingâ: False, âIsFtcModelSupportedâ: True, âMaxTankTemperatureâ: 60.0, âIdleZone1â: True, âIdleZone2â: True, âMinPcycleâ: 1, âMaxPcycleâ: 1, âMaxOutdoorUnitsâ: 255, âMaxIndoorUnitsâ: 255, âMaxTemperatureControlUnitsâ: 0, âDeviceIDâ: 110135, âMacAddressâ: 'a0:cc:2b:e3:2d:e
Iâm having the same issue as described above with error in first line (7).
SyntaxError: invalid syntax
Fatal error while loading config: invalid syntax (melcloud.py, line 7)
Failed config
General Errors:
- invalid syntax (melcloud.py, line 7)
And itâs not the issue of transfer method, Iâm using WGET to get the file. Any other ideas?
Never mind, but I thought of responding to myself when/if someone else get the same issue.
Using the correct download link instead of the HTML version helped things. First custom component installed and Iâm learning.