j4ydubs
0
There's a couple of people with P4's that have changed the code to support it. I just copied what they did. This seems to be the change.I am not sure the HA software supports the P4. The key code format is different for the P4.
# MOD BEGIN
# self._append_data(frame, self.FRAME_TYPE_LOCAL_WIRED_KEY_EVENT)
self._append_data(frame, self.FRAME_TYPE_REMOTE_WIRED_KEY_EVENT)
self._append_data(frame, key.value.to_bytes(2, byteorder='little'))
self._append_data(frame, b'\x00')
self._append_data(frame, b'\x00')
self._append_data(frame, key.value.to_bytes(2, byteorder='little'))
self._append_data(frame, b'\x00')
self._append_data(frame, b'\x00')
# MOD END