Giter Club home page Giter Club logo

Comments (10)

developerGM avatar developerGM commented on August 27, 2024 1

I am testing and for me this bug is fixed

from hon.

xjols avatar xjols commented on August 27, 2024 1

Hello, I tested this new beta version and solves this bug. Thank you very much

from hon.

salvatoremaietta89 avatar salvatoremaietta89 commented on August 27, 2024

Hi, i like this integration but have same problema...any command return connection Lost. Can you help me? Thanks

from hon.

xjols avatar xjols commented on August 27, 2024

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'

from hon.

Andre0512 avatar Andre0512 commented on August 27, 2024

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 🙂

from hon.

xjols avatar xjols commented on August 27, 2024

This is the zip. Thank you!
ac_397.zip

from hon.

developerGM avatar developerGM commented on August 27, 2024

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 empty

from hon.

Andre0512 avatar Andre0512 commented on August 27, 2024

Thanks, please try v0.9.1-beta.1

from hon.

developerGM avatar developerGM commented on August 27, 2024

It seems to be all resolved. I'll try again tomorrow and let you know. Thank you very much for your work

from hon.

Andre0512 avatar Andre0512 commented on August 27, 2024

Thanks @developerGM 🙂

from hon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.