Okey dokey, I had a fiddle around in Rasoft. I thought to myself: if we could add a “fake” light actually bound to that channel we might be able to discover it using the code as it currently is… alas, I could not get this to work but it might just be that I was not uploading the fake light module to the Bridge correctly.
What I did establish is that using @ShawWellPete’s approach to add the channel to the physical keypad button I do get that button press event arriving in the event listener in the hacs_rako library:
DEBUG:python_rako.bridge:Received bytes: [83, 8, 0, 73, 4, 51, 128, 255, 0, 1]
WARNING:python_rako.helpers:Unsupported UDP message: message_type=MessageType.STATUS, byte_list=[83, 8, 0, 73, 4, 51, 128, 255, 0, 1]
DEBUG:python_rako.bridge:Deserialised received message as: UnsupportedMessage()
DEBUG:__main__:UnsupportedMessage()
DEBUG:python_rako.bridge:Received bytes: [83, 8, 0, 73, 4, 51, 128, 255, 1, 0]
WARNING:python_rako.helpers:Unsupported UDP message: message_type=MessageType.STATUS, byte_list=[83, 8, 0, 73, 4, 51, 128, 255, 1, 0]
DEBUG:python_rako.bridge:Deserialised received message as: UnsupportedMessage()
DEBUG:__main__:UnsupportedMessage()
So that at least gives us a way to get the button presses (provided they’re linked to a dummy channel) and subsequently do “something” with them. I need to add support for that button press message type and then figure out how we represent that as an entity in HA (or just push it to MQTT which is a bit hacky but pretty trivial).
Simon