Getting this error all of a sudden (or at least that’s what it seems like).
Sun Dec 29 2019 17:02:54 GMT+0100 (Central European Standard Time)
'192.168.1.87'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/broadlink/__init__.py", line 114, in _send_packet
device = hass.data[DOMAIN][call.data[CONF_HOST]]
KeyError: '192.168.1.87'
This error can also rise if the host doesn’t exist. Check if your RM Pro is really available on the network at 192.168.1.87 by pinging it or check the logs for unable to reach messages. If nothing has changed on your WiFi you may unplug the RM Pro from the mains wait a minute then reconnect. Maybe it’s just some intermittent freeze.
Turns out that re-commissioning the RM mini (as IR device next to the living room TV for improved WAF*), while moving the RM Pro to another (obscured) location was the root cause of my snaffu…
What did not help is that I have all switches in a separate switches.yaml file (via !include), so I lost track of what was where and had duplicates in configuration.yaml and switches.yaml.
Once I removed the duplictaes from configuration.yaml, the solution was simple and both the mini and the pro are living happily together (in switches.yaml):
Now I have the RM Pro controlling the zemismart roller motor for the living room blinds, even though it is in the room next door with a brick wall in between, ie. good range!
Each RF command for the blinds is called via a script that has a button on my Living Room lovelace-view.
It’s great you can make it work. On my side, I have the battery powered zemismart roller shade (https://www.aliexpress.com/item/4000764153310.html) with broadlink rm pro. Can learn code just fine with econtrol app but then the created buttons does nothing …
I also tried with the scan frequency but does not work either. Also tried with the various ways to learn rf code actionned by a script in hass but no luck. Shame the motor otherwise works great with the remote… And my broadlink works flawlessly with rf plugs since many years … Did you do anything to make it work ?
Thanks in advance for any help.
Broadlink is certainly capable of transmitting RF codes for Zemismart, problem is the way how Broadlink does the transmit. With my RF code reader, I can see the Broadlink (especially when triggered by Home assistant) is only transmitting the code once. Zemismart has some kind of energy-saving option and this means it needs code repeated atleast 3 times or ideally 5+ times with about 200uS delay between codes for it to register codes sent from Broadlink.
There is no direct option to send repeat commands, maybe build it into a script or node red.