i have a question about the gateway. I read in the posts that only V2 works.
can you please tell me if i buy this one, will it work?
http://www.gearbest.com/alarm-systems/pp_600096.html?wid=21
thanks A lot for any tip!
i have a question about the gateway. I read in the posts that only V2 works.
can you please tell me if i buy this one, will it work?
http://www.gearbest.com/alarm-systems/pp_600096.html?wid=21
thanks A lot for any tip!
or use the gateway itself
there is a post here that say that the alarm API is not exposed on the gateway.
Maybe im wrong ?
Is this correct? it gives me error (it blocks HA from starting) but it is same as yours … ???
- alias: "Changing radio station livingroom"
trigger:
- platform: event
event_type: cube_action
event_data:
entity_id: binary_sensor.cube_158d00011a0108
action_type: flip90
condition:
- condition: template
value_template: >
true
{% else %}
false
{% endif %}
action:
- service: input_select.select_next
entity_id: input_select.radio_livingroom
error
17-02-05 23:14:49 ERROR (Thread-3) [homeassistant.util.yaml] while scanning for the next token
found character ‘%’ that cannot start any token
in “/home/hass/.homeassistant/automation.yaml”, line 306, column 12
should not be this? You don’t receive error?
- condition: template
value_template: >
{% if is_state('media_player.livingroom_home', 'playing') %}
true
{% else %}
false
{% endif %}
That’s correct (from what i understood) only the light is exposed in the API. Maybe a future firmware will add more functionality in to the API
@rave sensors work but after updating your code to the last version i’ve this in the log:
17-02-06 10:04:56 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
result = next(coro)
File "/home/homeassistant/.homeassistant/custom_components/binary_sensor/xiaomi.py", line 117, in _async_poll_status
self.xiaomi_hub.get_from_hub(self._sid)
File "/home/homeassistant/.homeassistant/custom_components/xiaomi.py", line 344, in get_from_hub
resp = self._send_cmd(cmd, "read_ack")
File "/home/homeassistant/.homeassistant/custom_components/xiaomi.py", line 312, in _send_cmd
data, addr = self._socket.recvfrom(1024)
InterruptedError: [Errno 4] Interrupted system call
I have had minor issues with switches not being discovered - i’ve yet to setup the 4 additional switches that I bought yet (both been busy, haven’t gotten HASS setup enough to warrant and scared this issue will be really problematic) I also heard that when you introduce more than one of these even more problems come up… (wishing I bought the Xiaomi switches now…)
We need to get to the bottom of reliability issues with Xiaomi hub, I would love to confirm if its a router related issue (seems crazy that the Xiaomi App / functionality for all the sensors works perfectly on my router its just HASS that wont work) - DAM YOU TP LINK… it would be good to know what routers other people have been using that work with it.
I might need to buy a cheap router to add on as an extension just for the hub…
The Xiaomi App gets the data via China, and HA is getting the data from packets send on the local network.
Nice! how you make it with this button?
asus n55u, no problems here
Mi router is both cheap and good. In the Android app where you enable dev mode, do you see the swtch listed?
And don’t buy real cheap router, my sis used a mini router and i couldn’t even reconnect the gateway after it went offline
It is working. 3 of my most used devices is integrated, broadlink, xiaomi and mqtt. It’s great for adding more devices without restarting the app or refresh the page. Currently working on UI for automation which is the hard part because conditions are nested in my setup
Yep in the android app I can see the switch - it seems that the hub works perfectly after a power cycle and then HASS restart, as soon as I restart HASS again i lose all my devices… until I power cycle it.
This one?
http://www.gearbest.com/wireless-routers/pp_429780.html?wid=21
Anyone know the power usage of this… Working Voltage: 12V 2.5A sounds high… I am just conscious that it will be on 24/7
I just plugged in all 5 switches they seem to work fine at the moment. I’ve hard coded the IP address into the configure file though…
Yeah. I’m using that one. Don’t expect it to have an English interface but it does some very nice feature like bandwidth limiting, monthly report and built in dydns tool.
You mean the sid for the switch? Can you show how your file looks like? I have been thinking to allow custom device definition by sid in configuration.yaml so that an offline device can still appear in HA.
Hi Stew,
Yeah way to high, 30watts. I’d say your looking a the maximum rating on the power pack not the device power consumption.
Found these specs on the router:
It’s quoting 5watts, pretty good. But same token it’s claiming 5V input which sort of contradicts your power pack 12V rating. It’s entirely possible it can also run from a 5V power pack.
Depending on the method to step down the 12V to whatever voltage rails the router uses internally somewhere around the3 - 3.3V it might run more efficiently with a 5V power pack. Something you can only test with a multimeter measuring current.
Rob.
Shouldn’t be an issue. It means the task to get data from gateway failed. If you don’t mind having 2 minutes between motion being activated, you can disable polling using option below. You can check README for detail
poll_motion: False
Is there anyone who experienced a similar scenario after a power outage:
I’m thinking of using a UPS to resolve this issue.