Skip to content

Commit

Permalink
intertechno: Fix head and tail formatter
Browse files Browse the repository at this point in the history
The head and tail formatter for the Intertechno gateway were missing a
trailing "0". After adding these, the ITGW-433 can operate a CMR1000.

The corresponding work can be found here:
https://www.instructables.com/Intertechno-LAN-Gateway-ITGW-433-and-OpenHAB/
  • Loading branch information
jdemel committed Jan 29, 2024
1 parent 1ae215c commit 32ce65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyBrematic/gateways/intertechno_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self, ip, port=49880):
# For the Intertechno GWY 433 the parameters look like that:
# head: "0,0,<repeat>,<pause>,<tune>,<baud>"
# tail: "<txversion>,<speed>"
self.head_format = "0,0,{0},{1},{2},{3}"
self.tail_format = "{0},{1}"
self.head_format = "0,0,{0},{1},{2},{3},0"
self.tail_format = "{0},{1},0"

def build_udp_payload(self, device, action):
head = self.get_head(device.repeat, device.pause_IT, device.tune, device.baud_IT)
Expand Down

0 comments on commit 32ce65b

Please sign in to comment.