openHAB zmote binding

As @mhilbush said, many devices have discrete codes for ON and OFF. These buttons are not present in plastic remotes, so difficult to find their codes.

But, there are few ways to find them:

  1. Check if you they are listed here, in which case, you can convert them to use with zmote.
  2. Many TVs I have seen, turn ON when you press CH+ or CH- keys. Find out if your TV turns ON using any other keys.
  3. If you have a little patience, you can find out if your TV has discrete codes (well, some hidden features as well :wink:) using zmote. But that would be a separate guide…

If you have a smart TV (device is in network), you can use network binding to identify if TV is on. Of course there is a small delay and you need a smart TV.

What I would like, is that zmote could raise an event when ever it can identify remote control pressed. So when I open TV with remote, I could change the room lightning.

@sl92656 I had the same problem and solved it by adding a power consumption measurement module in front of the device (speaker system in my case). You’ll be able to decide if the device is off (e.g. P < 5W) or on (P > 30W). See:

1 Like

Thank you all for the great suggestions :grinning:! I was afraid that there was not an “easy” solution available.

@Ari_Hagman unfortunately my TVs are “dumb” otherwise the WIFI route would have been the way to go (maybe it’s time to convince the boss to go for the new 60", naah…:grin:)

@urmilparikh your suggestion to “work” the original remote to find any other key that will trigger the ON action sounds good, and I’ll check that with my TV. To your 3. suggestion, that sounds interesting; I will have to investigate if writing a “code scanner” to find any hidden codes to trigger TV ON would be feasible (the downside will be, that in order to automate it, I’ll have to find a way to detect the ON state, which makes
@ThomDietrich suggestion to use switch&power meter appealing. It would make the power analysis part a little bit challenging, having a number of different devices connected in my entertainment system to one meter (DVD,Receiver,TV,…); If all breaks I could do a “cold boot” i.e. turn main power off and then on, which should initialize all devices to OFF.

Thanks again for the suggestions and I’ll report back once I figured it out!

Hi Urmil,

can help me to

@urmilparikh: how can I convert remotecentral codes to zmote, so that a new button in a zmote sends this code?
Thanks for your help!

Best,
~Thomas

Please use online converter tool from here: http://www.zmote.io/irtool

It supports conversion from Pronto HEX format used by remotecentral.

Great your linked page can convert it!
I can send the code from withing openhab2 zmote plugin with a sendcode command or with a modified json file with sendkey command as well, but how do I configure one button of the zmote web app to send this new code?
Thank you for your support!

That feature is not available right now, but it is there in our TODO list and should be available very soon.

OK, great thank you for you fast reply! I can wait because it’s not an urgent requirement as long as it works from withing openhab2 and I can control the devices via Alexa.

hi this looking like what I need :smiley:

I want to put my epson projector on/off and
my sony HIFI on/off and move from DVD and TV from my soney HIFI. by openhab
and my projector screen and stop at certain measurement

next will be…
when google home working with openhab… I can just say TV on. and then I get sound and my projector screen down.

@urmilparikh it’s been a while since this thread was active. I’m since using the binding by @Temar daily and it’s doing an excellent job. Today I wanted to add a new remote and had to find out, that nothing has changed in the Web App. Are you still actively developing it? There is for sure some room for improvement and it would be great to see an update soon!

Yes, we haven’t opened up web app since long.

Send in your comments and we will try to accommodate…

1 Like

I got a new remote that I wanted to be integrated into openhab. I built a simple arduion IR reader (using the IRremote libary). Then I got the following readings
ON:
4CB340BF
FFFFFFFF

OFF:
4CB3748B
FFFFFFFF

How do I convert this such that Zmote can use it?

I use rules like:
ZMote_SendIRCode.sendCommand(“38000,2,1,343,171,21,22BBBBBBBBBBB21,65CBBBCCCBBCBCBBBCCBC21,1672”)

We don’t have a converter from IRremote library, but you can learn IR codes using zmote itself and use them with openHAB.

Visit zmote.io/irtool, enter the local IP of your zmote (yes) and hit convert button. Now press a button on your physical remote and you should see a code for that button on results area.

It worked perfectly! Thanks!!!

hello I’m a beginner, I’m reading your post on ZMote

I installed OpenHab version 1.8 on raspberry, do you think 2 Infrared Transitter ZMote can work well?

Being a beginner, I ask you a few questions:
Where can I find the link?
Are there any examples?
Is there a database of remote controls?

Hi Garzie

Well, it has been a while, but I do have a system running now that is fairly robust. I resulted to using a Sonoff POW device to monitor the current consumption of my entertainment system devices (Receiver, TV, cable box). Unfortunately the consumption of some of the devices is not distinctively different to determine which one is actually ON (TV ~ 0.65A, Receiver ~ 0.36A, cable box ~ 0.38A). I was lucky enough to find two different codes for the receiver, one for ON and one for OFF. This allows me to at least determine through some logic if the cable box is ON or OFF.
Another part of the logic is that the TV consumption is quite different with a dark picture (i.e. cable box off) vs. actually seeing something on TV. The Grafana screen shot below shows the current consumption signature for a 24h period.

What stands out is that the current signal is noisy, especially when the TV is running and light/dark scenes combined with loud dynamic sound is active. To overcome this I had to low-pass filter the current consumption signal. Additionally I had to implement some signal qualification to ignore current sensor signal drop outs (single 0A readings) and obvious false readings (>1.75A).

A second feature I implemented is to turn ON/OFF the receiver automatically when I use the regular TV remote to just turn the TV ON or OFF. This saves energy since turning OFF the Receiver gets forgotten often. For this feature I use the low pass filter value and calculate a high enough delta current consumption value to detect the switching event. A Grafana shot is shown below for a TV OFF switching event.

Note: I do reset the filter value to the actual value after the switching event and disallow further switching until the dI/dt of the filter falls below a threshold (0.1A) to make the detection more stable.
So in summary it has been quite a lengthy and fun code development project with some challenges to get everything working right…

Very interesting read and cool idea using power consumption to determine appliances currently ON.

Nice!

I just wanted to post briefly to thank @Temar for the brilliantly engineered plugin. I didn’t really know what to expect, but I figured it was worth getting a Zmote and giving it a try. Within an hour or so I had the zmote programmed with codes from my remotes, had downloaded the .json files, set up the zmote binding, and plugged it into the logic I’d already written… and it appears to work flawlessly. Thanks for doing such an amazing job of the binding (and thanks also to the developers of the Zmote if you’re also following this thread). An absolutely perfect add-on to OH2.

ETA: I see @urmilparikh appears to be the person to thank for the excellent design and performance of the Zmote - so thank you!

1 Like