how do you do it in iOS? Because, as i remembers, i don’t think the version number i pressent in the iOS version…
Tap blank space repeatedly. Then more options will be shown. Enable developer mode using the fourth button from the top
Just did! I’ll probably post on their forums too.
Could you use an angled slice from dowel with appropriate diameter?
Sorry, I do not understand what you mean …
mmhhh still do not get it how it all go. How would you fix the piece of wood to the ceiling or wall …
I see it too much of a DIY for my taste (and IMO)
Yeah definitely a DIY solution
Fix the cylindrical wedge to ceiling etc with double sided padded tape same/similar to that on the bottom of the PIR sensor.
I have all these bits lying around at home… but I agree its a DIY solution not a professional/off the shelf solution.
I have a “ghost” plug. Since having problem with a power plug, I cancelled from the xiaomi gateway and also detached from the main.
Adter a reboot of the pi3, the plug is still there in dev/states.
Why this?
Same thing here, when restarted the xiaomi component failed…
17-02-20 22:11:38 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component xiaomi
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 152, in _async_setup_component
None, component.setup, hass, config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/xiaomi.py”, line 73, in setup
PY_XIAOMI_GATEWAY.discover_gateways()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/xiaomi.py”, line 160, in discover_gateways
self.gateways[ip_add] = XiaomiGateway(ip_add, port, sid, gateway_key, self._socket)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/xiaomi.py”, line 255, in init
if self._discover_devices():
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/xiaomi.py”, line 264, in _discover_devices
self.update_key(resp[“token”])
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/xiaomi.py”, line 363, in update_key
encryptor = AES.new(self.key, AES.MODE_CBC, IV=init_vector)
File “/home/homeassistant/.homeassistant/deps/Crypto/Cipher/AES.py”, line 264, in new
return _create_cipher(sys.modules[name], key, mode, *args, **kwargs)
File “/home/homeassistant/.homeassistant/deps/Crypto/Cipher/init.py”, line 130, in _create_cipher
return modes[mode](factory, **kwargs)
File “/home/homeassistant/.homeassistant/deps/Crypto/Cipher/_mode_cbc.py”, line 232, in _create_cbc_cipher
cipher_state = factory._create_base_cipher(kwargs)
File “/home/homeassistant/.homeassistant/deps/Crypto/Cipher/AES.py”, line 131, in _create_base_cipher
expect_byte_string(key)
File “/home/homeassistant/.homeassistant/deps/Crypto/Util/_raw_api.py”, line 175, in expect_byte_string
raise TypeError(“Only byte strings can be passed to C code”)
TypeError: Only byte strings can be passed to C code
EDIT: Solved by deleting/renaming the /home/homeassistant/.homeassistant/deps/Crypto folder.
Trying to configure here for the first time and I have the same error
Hello guys,
I’m folowing this thread already for a while but only now I had time to do something about this.
Well, I’ve installed HA on ubuntu Ubuntu 16.04.2 LTS and I’m trying to integrate my xiaomi devices, however without success
From UI I just can see “invalid config” related to xiaomi part, on the logs I’ve the following:
17-02-20 22:28:28 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component xiaomi
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/homeassistant/bootstrap.py”, line 152, in _async_setup_component
None, component.setup, hass, config)
File “/usr/lib/python3.5/asyncio/futures.py”, line 361, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 296, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 274, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/root/.homeassistant/custom_components/xiaomi.py”, line 58, in setup
sid = gateway[‘sid’]
KeyError: ‘sid’
This is my python version:
root@HomePC:~/.homeassistant# python --version
Python 3.5.2
into the configuration file about xiaomi I just have this:
#Xiaomi Stuff
xiaomi:
gateways:
-sid:
key: ub61q6mk0ycv6—
my xiaomi gateway is already in developer move as you can see in the picture.
Anyone has any idea what do I have wrong?
Thank you in advance!
BR,
jponte
Using latest code from the repo? Also, make sure you got the indentation in configuration.yaml right
HA and pycrypto version?
I am using HA 0.38.3 and Pycrypto 2.6.1
I downloaded and replaced the xiaomi components with the latest from the repo with the same result
Identation is correct, and it was working like a charm until yesterday.
Thanks for your work rave
EDIT: Solved by deleting/renaming /home/homeassistant/.homeassistant/deps/Crypto folder
I just want to add some more info about the ghost openings of door/window sensors and the ghost movement.
Today both door/window sensor and the pir sensor switched to “open”, however I also observed the following:
At that same time the temperature sensor logged 100ºC, and 0% humidity.
What’s even more interesting is that my Z-wave multisensor, placed in a different room, also logged a spike of temperature with 3 or 4 degrees, for no apparent reason. I can hardly disregard this as a coincidence.
Did you check your router logs? did you have wifi flapping or no internet connection?
I had yesterday ghost openings as well.
My pir sensors are showing motion too and i’m not on the latest version.
I don’t know how to reach xiaomi and open a bug report, probably there is a dev forum or smth where we could try our luck?
Its really annoying as i just bought like 15 door sensors and 5 motion and all current installed are changing their status to open
My wireless buttons are still on the way (bought like 6?) hope they wont have simliar issues.
Hi,
From my side I have this:
root@HomePC:~/.homeassistant# pip3 show pycrypto
Name: pycrypto
Version: 2.6.1
Summary: Cryptographic modules for Python.
Home-page: http://www.pycrypto.org/
Author: Dwayne C. Litzenberger
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.5/dist-packages
Requires:
root@HomePC:~/.homeassistant# hass --version
0.38.3
root@HomePC:~/.homeassistant# hass --script check_config
Testing configuration at /root/.homeassistant
Identation seems to be ok.
Here are my software versions. I am running on docker, with the latest image:
root@DiskStation:/usr/src/app# python -m homeassistant --version
0.38.3
root@DiskStation:/usr/src/app# python -m homeassistant --script check_config --config /config
Testing configuration at /config
root@DiskStation:/usr/src/app# pip3 show pycrypto
Name: pycrypto
Version: 2.6.1
Summary: Cryptographic modules for Python.
Home-page: http://www.pycrypto.org/
Author: Dwayne C. Litzenberger
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.5/site-packages
Requires:
I had a power outage, so that’d mean there was some brief time without wifi, probably the gateway indeed booted faster than the wifi.
The interesting part is that the Xiaomi app doesn’t show any movement, so this is most probably an internal firmware issue or the protocol is different. I see a lot of reads on the status of the PIR coming from HASS