Error sending actions to AC #92
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug Error to sending actions to AC
To Reproduce Steps to reproduce the behavior: 1. Go to thermostat card created by this integration to AC 2. Try to set any temperature by whell of thermostat 3. Error calling climate.set_temperature.connection lost 4. Any other actions also fails: Try to set Echo on 5. Appears Error calling service swith.turn_on.connection lost
Expected behavior They worked well in others olders versions, with problems like Echo that does not work in any versions. But now seems that I have others problems…
Screenshots
Environment (please complete the following information): - Home Assistant Version: 2023.7.1 - hOn Integration Version: 0.9.0 - pyhOn Versio: 0.14.9
Additional context
Home Assistant Logs
NOTE: The sensible information like MAC was deleted from log and reemplaced by “xxxx”
Device Log
Data Archive
Hi, i like this integration but have same problema…any command return connection Lost. Can you help me? Thanks
Today I see this error in log. I don’t know if it’s the same bug….
Detalls del registre (ERROR) Aquest error té origen en una integració personalitzada. Logger: custom_components.hon.hon Source: custom_components/hon/hon.py:92 Integration: Haier hOn (documentation, issues) First occurred: 04:28:07 (1 occurrences) Last logged: 04:28:07
Unexpected error fetching xx-xx-xx-xx-xx-data: ‘NoneType’ object has no attribute ‘get’ Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/hon/hon.py”, line 92, in _async_update_data await self._device.update() File “/usr/local/lib/python3.11/site-packages/pyhon/appliance.py”, line 198, in update await self.load_attributes() File “/usr/local/lib/python3.11/site-packages/pyhon/appliance.py”, line 174, in load_attributes for name, values in attributes.pop(“shadow”, {}).get(“parameters”, {}).items(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: ‘NoneType’ object has no attribute ‘get’
Hi, I have an idea what could be the problem here, maybe the empty
operationName
of the parameters gets synced to the settings command and causes probably the issue. Can you provide your Data Archive zip? Than it’s much more easy for me to test 🙂This is the zip. Thank you! ac_397.zip
Hi, I have the same problem. If I try to change some attributes, at 80% times receive “connection lost” I solve selecting a value from program menu and than I can choice for example “fan velocity” or can use other switch succesfully
For example, this is the last log…I used “screen display” switch and turn to OFF
2023-07-19 18:22:50.775 ERROR (MainThread) [pyhon.connection.api] https://api-iot.he.services/commands/v1/send - Payload: {'ancillaryParameters': {}, 'applianceOptions': {}, 'applianceType': 'AC', 'attributes': {'channel': 'mobileApp', 'energyLabel': '0', 'origin': 'standardProgram'}, 'commandName': 'settings', 'device': {'appVersion': '2.1.2', 'deviceModel': 'exynos9820', 'mobileId': 'xxxx', 'mobileOs': 'android', 'osVersion': 31}, 'macAddress': 'xxxx', 'parameters': {'10degreeHeatingStatus': '0', 'ch2oCleaningStatus': '0', 'cleaningTimeStatus': '0', 'echoStatus': '0', 'electricHeatingStatus': '0', 'energySavePeriod': '15', 'energySavingStatus': '0', 'filterChangeStatusCloud': '0', 'freshAirStatus': '0', 'halfDegreeSettingStatus': '0', 'healthMode': '0', 'heatAccumulationStatus': '0', 'humanSensingStatus': '0', 'humidificationStatus': '0', 'humiditySel': '30', 'intelligenceStatus': '0', 'lightStatus': '0', 'lockStatus': '0', 'machMode': '6', 'muteStatus': '0', 'onOffStatus': '1', 'operationName': '', 'pm2p5CleaningStatus': '0', 'pmvStatus': '0', 'rapidMode': '0', 'screenDisplayStatus': '1', 'selfCleaning56Status': '0', 'selfCleaningStatus': '0', 'silentSleepStatus': '0', 'specialMode': '0', 'tempSel': '22', 'tempUnit': '0', 'voiceSignStatus': '0', 'voiceStatus': '0', 'windDirectionHorizontal': '0', 'windDirectionVertical': '5', 'windSensingStatus': '0', 'windSpeed': '2'}, 'timestamp': '2023-07-19T16:22:50.594Z', 'transactionId': 'c4-dd-57-51-7a-38_2023-07-19T16:22:50.594Z'}
you can see that I have
operationName
emptyThanks, please try
v0.9.1-beta.1
It seems to be all resolved. I’ll try again tomorrow and let you know. Thank you very much for your work
Thanks @developerGM 🙂
I am testing and for me this bug is
fixed
Hello, I tested this new beta version and solves this bug. Thank you very much