Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add RM3 mini 5F36 #34

Open
djfanatix opened this issue Aug 29, 2020 · 2 comments
Open

add RM3 mini 5F36 #34

djfanatix opened this issue Aug 29, 2020 · 2 comments

Comments

@djfanatix
Copy link

djfanatix commented Aug 29, 2020

hi,

the new RM3 mini's are different/ new models. 5F36

Could you update the app?

  • add the device type to RM3
  • RM3 5F36 need different headers to be send:

class rm(device):
def init(self, host, mac, devtype):
device.init(self, host, mac, devtype)
self.type = "RM2"
if devtype == 0x5f36:
self._request_header = b'\x04\x00'
self._code_sending_header = b'\xd0\x00'
else:
self._request_header = b''
self._code_sending_header = b''


see:

mjg59/python-broadlink#317

@timkouters
Copy link

Hi Remko,

How's life?
Hope all is going well :)

I've bought a RM Mini 3, made a clone of your repo and added 0x5f36 in the switch-case in file DeviceInfo.js

case 0x5F36:
case 0x2737: info.type = BroadlinkType.RM;       info.name = 'RM Mini';  break; 

The device is recognized and shows the MAC-address as well.

When I try to select the learn button, it seems Homey does not respond.
I tried to enable the debug logging in the app, but I do not get any logging in the console while running "homey app run".

Can you help out or can I do someting?

@timkouters
Copy link

timkouters commented Feb 27, 2021

Hey,

I did some in my fork.
Learning is not going OK, but discovery is (see my fork).
https://github.com/timkouters/com.broadlink

Hereby my logging currently:
─────────────── Logging stdout & stderr ───────────────
Warning: Trying to access Homey.env.HOMEY_LOG_URL but the environment variable has not been set!
request_header 4 0
payload: 40
->send_packet: payload=03,04,00
==> Communicate.sendto - create socket
(node:9138) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
<== Communicate.sendto - got message with size=56
<== Communicate.sendto - got message with size=56
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,B3,CB,FA,FF,2A,27,EE,03,CC,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,B3,CB,FA,FF,2A,27,EE,03,CC,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00
error = 65530
_check_data - repeat=8
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,30,D3,FB,FF,2A,27,EE,03,CD,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,30,D3,FB,FF,2A,27,EE,03,CD,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=7
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,31,D3,FB,FF,2A,27,EE,03,CE,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,31,D3,FB,FF,2A,27,EE,03,CE,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=6
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,32,D3,FB,FF,2A,27,EE,03,CF,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,32,D3,FB,FF,2A,27,EE,03,CF,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=5
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,33,D3,FB,FF,2A,27,EE,03,D0,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,33,D3,FB,FF,2A,27,EE,03,D0,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=4
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,34,D3,FB,FF,2A,27,EE,03,D1,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,34,D3,FB,FF,2A,27,EE,03,D1,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=3
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,35,D3,FB,FF,2A,27,EE,03,D2,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,35,D3,FB,FF,2A,27,EE,03,D2,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=2
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,36,D3,FB,FF,2A,27,EE,03,D3,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,36,D3,FB,FF,2A,27,EE,03,D3,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531
_check_data - repeat=1
->send_packet: payload=04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
<== Communicate.sendto - got message with size=72
<== Communicate.sendto - got message with size=72
->send_packet: resp=5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,37,D3,FB,FF,2A,27,EE,03,D4,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
got response:5A,A5,AA,55,5A,A5,AA,55,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,37,D3,FB,FF,2A,27,EE,03,D4,DB,A0,43,B0,46,88,57,01,00,00,00,AF,BE,00,00,03,D6,05,CF,9E,FD,DF,78,EA,19,09,B6,02,96,2F,53
error = 65531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants