mertik maxitrol G6R-H4TV21-z22

About receivers, transmitters, transceivers, connections, antennas etc.

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

mertik maxitrol G6R-H4TV21-z22

#1 Post by siggy » 10 Nov 2020, 22:32

hi,

I am struggling to get my fireplace to work with my RFLINK (ardunio on a home assistant on rpii). I can see the commands in the log from the remote but trying to send commands just returns an error. Someone who has experience with this one and can help me with some advice. Happy to provide logs and the scripts i have if someone is willing to help. here is the setup in config:
switch:
- platform: rflink
devices:
mertik_gv60_038527_13:
fire_event: true
signal_repetitions: 2
aliases:
- Mertik_GV60
name: fireplace
mertik_gv60_038527_11:
fire_event: true
signal_repetitions: 2
name: fireplace2

I tried using both IDs that shows up in the log, but neither had any effect.

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#2 Post by siggy » 16 Nov 2020, 19:22

2020-11-16 19:19:16 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: mertik_gv60_038527_13
2020-11-16 19:19:16 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2824163560]
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1448, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1483, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 482, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 519, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 561, in async_turn_on
await self._async_handle_command("turn_on")
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 498, in _async_handle_command
await self._async_send_command(cmd, self._signal_repetitions)
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 524, in _async_send_command
await self._protocol.send_command_ack(self._device_id, cmd)
File "/usr/local/lib/python3.8/site-packages/rflink/protocol.py", line 223, in send_command_ack
self.send_command(device_id, action)
File "/usr/local/lib/python3.8/site-packages/rflink/protocol.py", line 186, in send_command
command = deserialize_packet_id(device_id)
File "/usr/local/lib/python3.8/site-packages/rflink/parser.py", line 476, in deserialize_packet_id
assert len(id_switch) < 3
AssertionError

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#3 Post by siggy » 16 Nov 2020, 19:23

Anyone who can help decipher the log?

I can read all the commands using the remote , but when I try to send commands through RFlink, I get errors and it doesnt work

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#4 Post by siggy » 16 Nov 2020, 19:25

for reference, here is the log when I press the buttons on the remote which seems to be read perfectly fine:

020-11-16 19:17:32 DEBUG (MainThread) [rflink.protocol] received data: 20;01;Mertik_GV60;ID=038527;SWIT
2020-11-16 19:17:32 DEBUG (MainThread) [rflink.protocol] received data: CH=13;CMD=DOWN;
2020-11-16 19:17:32 DEBUG (MainThread) [rflink.protocol] got packet: 20;01;Mertik_GV60;ID=038527;SWITCH=13;CMD=DOWN;
2020-11-16 19:17:32 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'mertik_gv60', 'id': '038527', 'switch': '13', 'command': 'down'}
2020-11-16 19:17:32 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'mertik_gv60_038527_13', 'command': 'down'}
2020-11-16 19:17:32 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {'id': 'mertik_gv60_038527_13', 'command': 'down'}
2020-11-16 19:17:32 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: ['switch.fireplace']
2020-11-16 19:17:32 DEBUG (MainThread) [homeassistant.components.rflink] passing event to switch.fireplace
2020-11-16 19:17:32 DEBUG (MainThread) [homeassistant.components.rflink] Fired bus event for switch.fireplace: down
2020-11-16 19:17:33 DEBUG (MainThread) [rflink.protocol] received data: 20;02;Mertik_GV60;ID=038527;SWIT
2020-11-16 19:17:33 DEBUG (MainThread) [rflink.protocol] received data: CH=13;CMD=DOWN;
2020-11-16 19:17:33 DEBUG (MainThread) [rflink.protocol] got packet: 20;02;Mertik_GV60;ID=038527;SWITCH=13;CMD=DOWN;
2020-11-16 19:17:33 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'mertik_gv60', 'id': '038527', 'switch': '13', 'command': 'down'}
2020-11-16 19:17:33 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'mertik_gv60_038527_13', 'command': 'down'}
2020-11-16 19:17:33 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {'id': 'mertik_gv60_038527_13', 'command': 'down'}
2020-11-16 19:17:33 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: ['switch.fireplace']
2020-11-16 19:17:33 DEBUG (MainThread) [homeassistant.components.rflink] passing event to switch.fireplace
2020-11-16 19:17:33 DEBUG (MainThread) [homeassistant.components.rflink] Fired bus event for switch.fireplace: down

javicalle
Normal user
Posts: 17
Joined: 28 Sep 2018, 20:41

Re: mertik maxitrol G6R-H4TV21-z22

#5 Post by javicalle » 19 Nov 2020, 09:05

I think it's related to this other bug in Home Assistant: The @aequitas library don't support protocols ID with underscores and exceptions must be made in the library:
* https://github.com/aequitas/python-rflink/issues/49
* https://github.com/aequitas/python-rfli ... 9d0443325f

I don't know what is the best approach to prevent this problem, but if the RFLink software keeps sending protocols with underscores I suppose it will depend on the implementation of the library.

I hope I've helped.

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#6 Post by siggy » 23 Nov 2020, 00:37

Hi, thanks. It says in the community thread it is fixed already in an earlier ha update. Would I still need to update the rflink version manually? I'll anyway give it a go tomorrow

javicalle
Normal user
Posts: 17
Joined: 28 Sep 2018, 20:41

Re: mertik maxitrol G6R-H4TV21-z22

#7 Post by javicalle » 23 Nov 2020, 09:10

Not quite.

It is fixed for protocol:

Code: Select all

dooya_v4


Your problem is with protocol

Code: Select all

mertik_gv60
To be addressed the same way that in the 'dooya_v4' case, this protocol must be fixed in @aequitas rflink library, and then upgraded in RFLink dependencies.

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#8 Post by siggy » 23 Nov 2020, 22:35

thanks. so if i get this correctly, i'll need to ask @aequitas to update with this exception ? is he on this forum or should i use github or some other channel?

javicalle
Normal user
Posts: 17
Joined: 28 Sep 2018, 20:41

Re: mertik maxitrol G6R-H4TV21-z22

#9 Post by javicalle » 24 Nov 2020, 13:48

Yes, first a patch in @aequitas library is needed. You can ask him in github.

Once new version is available, an upgrade in HA must be done. Also can be asked in HA github.

joostvanmourik
New user
Posts: 1
Joined: 13 Jan 2021, 14:55

Re: mertik maxitrol G6R-H4TV21-z22

#10 Post by joostvanmourik » 13 Jan 2021, 14:57

DId you ever get this fixed i have the exact same problem with the Mertik_GV60

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#11 Post by siggy » 15 Feb 2021, 22:09

hi,
I got help to fix the parsing issue in Home assistant. however, the fireplace is still not responding. I tried the learning tool as well, but it seems the tool doesn't want to (re)learn the signals as it responds with the decoded string which seems to be wrong compared to what is described on the rflink site. hence, after a lot of work and fiddling, I have yet to be able to solve this. (I have sent the debug data to the email listed on the site, but not sure there is anyone working on this anymore). HAve you tried the learning tool? Wondering if you have more luck than me

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#12 Post by siggy » 16 Feb 2021, 18:25

@stuntteam,

I have sent you log data for this one from the rflink loader, but I understand you are jammed. I wonder if you or someone might guide me through the learning option. I have followed the instructions, but for some reason the log shows the following after submitting the rffind command and pushing the 'on' button on the remote:
10;rffind=on;
20;03;RFFIND=ON;
20;04;Mertik_GV60;ID=038527;SWITCH=11;CMD=ON;

Meaning, it looks like instead of learning the signal it shows the interpreted signal which for some reason doesn't work when you send it to the fireplace. It seems the already stored values overrides the learning mode. Am I doing something wrong?

siggy
Normal user
Posts: 11
Joined: 03 Nov 2020, 16:22

Re: mertik maxitrol G6R-H4TV21-z22

#13 Post by siggy » 27 Apr 2021, 23:09

I have now gotten the Mertik to work with the rflink-alt (https://github.com/hardcodedpassword/rflink-alt). hardcodedpassword has done some awesome work to open the rflink up. With that I now know that the Mertik device I have is wrongly implemented in the rflink protocol and I have the pulse sequence, repeat and pause requirements etc. In theory not the biggest deal to adjust the plugin, but alas...

At this point I have two options; either map all my devices with the necessary commands and create the corresponding scripts to use with rflink_alt so that I get all my devices to spin with that code or I will have to continue to wait till somehow we are prioritized in the rflink backlog. I guess I am left with little choice...

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests