Error sending actions to AC #92
Closed
opened 2023-07-13 17:51:48 +02:00 by xjols
·
10 comments
No Branch/Tag Specified
main
v0.9
v0.8
v0.7
v0.11.0
v0.11.0-beta.1
v0.10.1
v0.10.1-beta.1
v0.10.0
v0.10.0-beta.1
v0.9.2-beta.1
v0.9.1
v0.9.1-beta.1
v0.9.0
v0.9.0-beta.10
v0.9.0-beta.9
v0.9.0-beta.8
v0.9.0-beta.7
v0.9.0-beta.6
v0.9.0-beta.5
v0.9.0-beta.4
v0.9.0-beta.3
v0.9.0-beta.2
v0.9.0-beta.1
v0.8.1
v0.8.1-beta.1
v0.8.0
v0.8.0-beta.10
v0.8.0-beta.9
v0.8.0-beta.8
v0.8.0-beta.7
v0.8.0-beta.6
v0.8.0-beta.5
v0.8.0-beta.4
v0.8.0-beta.3
v0.8.0-beta.2
v0.8.0-beta.1
v0.7.3
v0.7.3-beta.2
v0.7.3-beta.1
v0.7.2
v0.7.1
v0.7.0
v0.7.0-beta.8
v0.7.0-beta.7
v0.7.0-beta.6
v0.7.0-beta.5
v0.7.0-beta.4
v0.7.0-beta.3
v0.7.0-beta.2
v0.7.0-beta.1
v0.6.1
v0.6.0
v0.6.0-beta.8
v0.6.0-beta.7
v0.6.0-beta.6
v0.6.0-beta.5
v0.6.0-beta.4
v0.6.0-beta.3
v0.6.0-beta.2
v0.6.0-beta.1
v0.5.1
test
v0.5.1-beta.1
v0.5.0
v0.5.0-beta.5
v0.5.0-beta.4
v0.5.0-beta.3
v0.5.0-beta.2
v0.5.0-beta.1
v0.4.0
v0.3.0
v0.2.5
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.1
v0.1.0
Labels
Clear labels
air conditioner
air purifier
air scanner
authentication error
bug
candy
dish washer
documentation
duplicate
enhancement
fridge
good first issue
haier
help wanted
hob
hood
hoover
invalid
microwave
new appliance
oven
pyhOn
question
robot vacuum cleaner
tumble dryer
washer dryer
washing machine
water heater
wine cellar
wontfix
Air conditioner (AC)
Air purifier (AP)
Air scanner (AS)
Authentication Error
Something isn't working
Candy
Dish washer (DW)
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Fridge (REF)
Good for newcomers
Haier
Extra attention is needed
Hob (IH)
Hood (HO)
Hoover
This doesn't seem right
Microwave (MW)
New Appliance Request
Oven (OV)
Issue in pyhOn
Further information is requested
Robot vacuum cleaner (RVC)
Tumble dryer (TD)
Washer dryer (WD)
Washing machine (WM)
Water Heater (WH)
Wine Cellar (WC)
This will not be worked on
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xiconfjs/hon#92
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
Error to sending actions to AC
To Reproduce
Steps to reproduce the behavior:
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):
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
operationNameof 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
operationNameemptyThanks, please try
v0.9.1-beta.1It 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
fixedHello, I tested this new beta version and solves this bug. Thank you very much