Comments (8)
Do you have simplejson installed? Im running HASSIO so it gets fixed automatically (if I recall correctly). I think you need to install modules on hassbian.
Let me know :)
from homeassistant-greeclimatecomponent.
from homeassistant-greeclimatecomponent.
hi.
installed simplejson and running python 3.5.3
unfortunatly no good news :(
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro
res = func(*args, **kw)
File "/home/homeassistant/.homeassistant/custom_components/gree/climate.py", line 113, in async_setup_platform
GreeClimate(hass, name, ip_addr, port, mac_addr, min_temp, max_temp, target_temp, target_temp_step, temp_sensor_entity_id, operation_list, fan_list, swing_updn_mode_list, default_operation, default_fan_mode, default_operation_from_idle, default_swing_updn_mode, encryption_key, uid)
File "/home/homeassistant/.homeassistant/custom_components/gree/climate.py", line 152, in init
self._encryption_key = self.GetDeviceKey().encode("utf8")
File "/home/homeassistant/.homeassistant/custom_components/gree/climate.py", line 220, in GetDeviceKey
return self.FetchResult(cipher, self._ip_addr, self._port, jsonPayloadToSend)['key']
File "/home/homeassistant/.homeassistant/custom_components/gree/climate.py", line 192, in FetchResult
receivedJson = simplejson.loads(data)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
from homeassistant-greeclimatecomponent.
Hi, im not sure why this is going wrong. Maybe, if possible, you can switch to HASSIO? All dependencies will be fixed for you in that distro.
Unfortunately I dont have a test-setup with hassbian available.
from homeassistant-greeclimatecomponent.
Hi, looks like recvfrom
method returns bytes type as described here, and simplejson.loads
method expects string. Perhaps decode()
will solve that.
from homeassistant-greeclimatecomponent.
@omribenami can you try the suggestion from @srozb and let us know?
from homeassistant-greeclimatecomponent.
guys with a help of a friend i got it fixed... it turned out to be like rob said... a lack of Simplejson..ive installed it on PIP command instead of PIP3... i still got an time out error because climate.py couldnt fetch the encryption keys but i extracted them myself and now its fully working. tnx for the help you guys and tnx for effort bringing gree to HA Rob!!
from homeassistant-greeclimatecomponent.
Glad to hear! Enjoy.
from homeassistant-greeclimatecomponent.
Related Issues (20)
- I'm a novice. Lights entity can't find it HOT 1
- launch climate.yalm HOT 6
- WiFi registration helper & fake heartbeat server HOT 3
- Integracion with Home Assistant HOT 3
- It doesn't start on Hassio HOT 1
- Add support Gree Versati III Heat Pump - Gree Versati III GRS-CQ10Pd/NhH-E HOT 3
- Humidifiers... any support?
- AC Sleep setting is not kept when mode/temp is changed HOT 2
- Temperature Range HOT 3
- Not working in 2023.6 beta HOT 6
- External temp sensor not showing temp HOT 10
- Lights don't work with the latest version HOT 5
- Upgraded to 2023.6.2-2023.7.1 - Gree not loading - Error HOT 6
- It doesn't show offline after restart of AC HOT 2
- Setup of platform gree is taking longer than 60 seconds. Startup will proceed without waiting any longer - then nothing happened anymore HOT 6
- Gree now sends its own temperature HOT 3
- Add support to GWHD(28)NK3K0 HOT 1
- Wrong product HOT 1
- Notice of removals - HASS 2025.1.X+ HOT 3
- Current temperature not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-greeclimatecomponent.