Is there any chance of getting the alarm working on the hub?
I use the alarm for intruder detection, so I’d like to build this into HA if possible?
Is there any chance of getting the alarm working on the hub?
I use the alarm for intruder detection, so I’d like to build this into HA if possible?
Dont think its at that point yet… Id be more interested in utilising the speaker itself somehow.
Hi @covrig
I’m working on switch compoonent.
It seems that the switch has 2 commands: click and double click.
I think to create 2 components in H.A: one for reacting to one click and the other to double click.
in the last code, I change everything to lowcase: aqara.py
Update:
https://github.com/fooxy/homeassistant-aqara
Works on OSX
But issue still remaining in raspberry with socket binding: port 9898 already in use.
Hope to fix it asap.
Thanks fooxy, really appreciate your work on this.
Nice work. I hope you will add it to the official version soon.
It does not need to support all kinds of devices before you do that. I think it should be ready for that when you have solved the socket binding issue
hi, i’ve updated the script and now is not working anymore…
16-12-20 09:46:29 homeassistant.components.sensor: Error while setting up platform aqara
File “/home/homeassistant/.homeassistant/custom_components/sensor/aqara.py”, line 16, in setup_platform
this is row 16: gateway = hass.data[‘AqaraGateway’]
what’s the problem? thanks a lot
Agreed I hope to do it soon.
Did you also add the " hub"custom component like this:
.homeassistant/custom_components/aqara.py
this one: https://github.com/fooxy/homeassistant-aqara/blob/master/custom_components/aqara.py
Thank you for your feedback.
yes… but with old components all works…
this is the error
ERROR:homeassistant.components.sensor:Error while setting up platform aqara
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 150, in _async_setup_platform
entity_platform.add_entities, discovery_info
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 “/home/homeassistant/.homeassistant/custom_components/sensor/aqara.py”, line 16, in setup_platform
gateway = hass.data[‘AqaraGateway’]
I have not tried, but I think you have to set up the hub platform too.
aqara:
Or @fooxy should add
DEPENDENCIES = [‘aqara’]
to the aqara sensor.
ok now adding
aquara:
in the configuration file it work… but i’ve lost the motion sensors and the magnet too… i need to change something else?
Have you added the binary sensor to your config?
Great job with the update. I was developing xiaomi hub component from scratch yesterday and found out you did that change today.
The other thing i managed to do is displaying the plug and switches. I’m checking now whether i can issue command to those devices which should be easy once i figure out the encryption. Will share once i got them working
Getting something similar as well.
Not sure how to go about doing that… Basically just copied custom_components and changed yaml to
sensor :
platform: aqara
Then you have to add a new line with aqara.
sensor :
platform: aqara
aqara: