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: 6
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: 6
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: 6
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: 6
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: 10
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: 6
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: 10
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: 6
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: 10
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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests