Hi,
It is possible to integrate RM Bridge 1.2.0 in pimatic ?
-
RM Bridge 1.2.0
-
@andi216 Generally, yes, but do you want a sollution where pimatic talks to a RM-bridge app ou your android device which then mediates commands to the RM-pro? Do you want a sollution which is likely to break with every firmware release available for RM-pro?
Unfortunately, the Broadlink does not appear to support an API or RM-pro. May be this is going to change if more users demand for it.
See also the following posts:
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
I don’t know anything about programming.
I thought if that could implement RM Bridge in Pimatic we could easily use commands generated by RM Bridge without using smartphone.
With push buttons and rules we can easely issue commands infrared.Ex: Tv power button
IF tv power is pressed
THEN execute "wget http://(pimaticIP):(rm bridge port)/(tv generated code pwr) -
@andi216 Have you seen this thread about receiving and transmitting IR?
It is more a little bit more work in the set up but the possibilities are the same. Maybe also interesting for people who find this thread. -
Thanks for the idea. I installed and everything works great with lirc.
I have one problem that I do not know how to fix it.
When I turn on (active) plugin lirc disappear all pimatic rules.
It displays errors :
error [pimatic]: Could not parse rule “if tv1pwr is pressed THEN execute” irsend SEND_ONCE sonytv KEY_POWER “” Can not find module ‘/tmp/cached_remotes_lirc.json’ …….In root /tmp this file exists ( cached_remotes_lirc.json )
{“sonytv”:[“KEY_EJECTCD”,“KEY_NEXT”,“KEY_PLAY”,“KEY_STOP”,“KEY_PAUSE”,“KEY_INFO”,“KEY_EXIT”,“KEY_ENTER”,“KEY_UP”,“KEY_DOWN”,“KEY_LEFT”,“KEY_RIGHT”,“KEY_1”,“KEY_2”,“KEY_3”,“KEY_4”,“KEY_5”,“KEY_6”,“KEY_7”,“KEY_8”,“KEY_9”,“KEY_0”,“KEY_VOLUMEUP”,“KEY_VOLUMEDOWN”,“KEY_CHANNELUP”,“KEY_CHANNELDOWN”,“KEY_MUTE”,“KEY_G”,“KEY_I”,“KEY_AUDIO”,“KEY_POWER”]} -
@andi216 said:
error [pimatic]: Could not parse rule “if tv1pwr is pressed THEN execute” irsend SEND_ONCE sonytv KEY_POWER “” Can not find module ‘/tmp/cached_remotes_lirc.json’ …….
first thing that i can see there’s an error in the rule. usually after execute there should be a space/blank like that :
IF tv1pwr is pressed THEN execute "irsend SEND_ONCE sonytv KEY_POWER"
does the command work in the shell / from bash?
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
If disable the plugin pimatic-lirc everything works correctly.