marciogranzotto / wideq Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ollo69/wideq
reverse-engineered client for the LG SmartThinQ API
Home Page: https://pypi.org/project/wideq/
License: MIT License
This project forked from ollo69/wideq
reverse-engineered client for the LG SmartThinQ API
Home Page: https://pypi.org/project/wideq/
License: MIT License
When getting this going, I did a band-aid (which obviously breaks if you have a swing capable system), but essentially climate.py line 243, I changed from if self._swing_mode == SWING_MODE_DEFAULT and self._state is not None:
to if self._swing_mode != SWING_MODE_DEFAULT and self._state is not None:
Reason being: I have a ducted unit, which isn't swing capable. Meant that the integration wouldn't start with the following traceback:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 626, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 336, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 269, in state_attributes
data[ATTR_SWING_MODE] = self.swing_mode
File "/config/custom_components/thinq_v2/climate.py", line 245, in swing_mode
if v[0] == self._state.horz_swing and v[1] == self._state.vert_swing:
File "/usr/local/lib/python3.8/site-packages/wideq/ac.py", line 440, in horz_swing
lookup_enum("airState.wDir.hStep", self.data, self.ac)
File "/usr/local/lib/python3.8/site-packages/wideq/util.py", line 17, in lookup_enum
return device.model.enum_name(attr, data[attr])
KeyError: 'airState.wDir.hStep'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.