Extending the capabilities of dumb devices2019-07-06 [ iot ]
As with my kindle hack , I wanted to extend a 'dumb' device, my HDMI input selector.
The input selector originally looked like this:
It simply switches between available inputs whenever the button is toggled.
Believe it or not, standing up, walking to the TV and pressing this button is incredibly faster than using the crappy remote to navigate the crappy interface on our tv.
And while it is faster, it is also not as easy as clicking some button remotely, and so the remote-button-presser was born!
While the button-pressing is extremely simple to implement based on my previous iot 'framework' – the hardest part by far was a way to detect which input is selected.. at least without getting the device out from the wall and using the LEDs as inputs for the ESP8266.
There are only 2 devices connected and one of them can output whether or not it has an HDMI cable connected by reading
As this device (Odroid) has a very limited linux runtime, I setteld on sending UDP messages (same as the kindle ) to a local server that converts them to MQTT.
Why not CEC?
Couldn't get it to work with our devices.
In a similar vein, I've also wired 2 relays to my electric curtains controls with wifi integration. The software is the same as before and you can see it here -- it simply holds the correct relay closed for the specified amount of time.