pyHPSU
pyHPSU copied to clipboard
Add support to run on Rotex rocon-g1 device
With my HPSU compact I got Rotex rocon-g1 gateway, to run it using Rotex Cloud. I don't like that much, so I tried to check what's inside and found Beagle Bone Black with CAN module.
https://www.heizungsdiscount24.de/regelungstechnik/rotex-gateway-rocon-g1-zur-ankopplung-der-steuerung-an-das-internet.html
I got root to the device and found there Debian
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
# cat /etc/issue
Debian GNU/Linux 7 \n \l
BeagleBoard.org Debian Image 2015-03-01
ip link show can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 10
link/can
I installed can-utils and can dump can frames:
root@rocon-g1:~/pyHPSU# /root/can-utils/candump can0
can0 69D [7] C1 0F FA 01 99 00 00
can0 69D [7] 31 00 FA 01 48 00 00
can0 180 [7] D2 1D FA 01 48 00 00
can0 69D [7] 31 00 FA 00 0C 00 00
can0 180 [7] D2 1D FA 00 0C 00 2D
can0 69D [7] 31 00 FA 0A 0C 00 00
can0 180 [7] D2 1D FA 0A 0C 80 00
can0 69D [7] 31 00 FA 01 22 00 00
can0 180 [7] D2 1D FA 01 22 0D 00
can0 69D [7] 31 00 FA 01 23 00 00
can0 180 [7] D2 1D FA 01 23 01 00
can0 69D [7] 31 00 FA 01 24 00 00
can0 180 [7] D2 1D FA 01 24 12 00
can0 69D [7] 31 00 FA 01 25 00 00
can0 180 [7] D2 1D FA 01 25 0A 00
can0 69D [7] 31 00 FA 01 26 00 00
can0 180 [7] D2 1D FA 01 26 1C 00
can0 69D [7] 31 00 FA 01 12 00 00
can0 180 [7] D2 1D FA 01 12 03 00
I had to install python from sources to get working as python in packages is outdated. I'm not sure what driver use to get it working?
/usr/local/bin/python3 pyHPSU.py -l EN -c t_hc_set -c t_dhw_set -c t_ext -c t_outdoor_ot1 -c ta2 -o JSON -v 1
Traceback (most recent call last):
File "pyHPSU.py", line 148, in <module>
main(sys.argv[1:])
File "pyHPSU.py", line 88, in main
hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code)
File "/root/pyHPSU/HPSU/HPSU.py", line 58, in __init__
desc = row[2]
IndexError: list index out of range
/usr/local/bin/python3 pyHPSU.py -l EN -d EMU -c t_hc_set -c t_dhw_set -c t_ext -c t_outdoor_ot1 -c ta2 -o JSON -v 1
Traceback (most recent call last):
File "pyHPSU.py", line 148, in <module>
main(sys.argv[1:])
File "pyHPSU.py", line 88, in main
hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code)
File "/root/pyHPSU/HPSU/HPSU.py", line 58, in __init__
desc = row[2]
IndexError: list index out of range
Need your help to get pyHPSU working with can0 in this device.
I've also noticed the list index out of range error. I've rebuilt the /etc/pyHPSU/commands_hpsu_NL.csv file and now it works. I'll share the file once I've completed the translation.
I'm using a raspbian (linux) on a raspberry pi. Perhaps its related to dos vs unix file format?
with kind regards, / met vriendelijke groet,
Stefan van der Eijk
On Sat, Jan 13, 2018 at 10:32 AM, peak-load [email protected] wrote:
With my HPSU compact I got Rotex rocon-g1 gateway, to run it using Rotex Cloud. I don't like that much, so I tried to check what's inside and found Beagle Bone Black with CAN module.
https://www.heizungsdiscount24.de/regelungstechnik/rotex- gateway-rocon-g1-zur-ankopplung-der-steuerung-an-das-internet.html
I got root to the device and found there Debian
lsb_release -a
No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy
cat /etc/issue
Debian GNU/Linux 7 \n \l BeagleBoard.org Debian Image 2015-03-01
ip link show can0 3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 10 link/can
I installed can-utils and can dump can frames:
root@rocon-g1:~/pyHPSU# /root/can-utils/candump can0 can0 69D [7] C1 0F FA 01 99 00 00 can0 69D [7] 31 00 FA 01 48 00 00 can0 180 [7] D2 1D FA 01 48 00 00 can0 69D [7] 31 00 FA 00 0C 00 00 can0 180 [7] D2 1D FA 00 0C 00 2D can0 69D [7] 31 00 FA 0A 0C 00 00 can0 180 [7] D2 1D FA 0A 0C 80 00 can0 69D [7] 31 00 FA 01 22 00 00 can0 180 [7] D2 1D FA 01 22 0D 00 can0 69D [7] 31 00 FA 01 23 00 00 can0 180 [7] D2 1D FA 01 23 01 00 can0 69D [7] 31 00 FA 01 24 00 00 can0 180 [7] D2 1D FA 01 24 12 00 can0 69D [7] 31 00 FA 01 25 00 00 can0 180 [7] D2 1D FA 01 25 0A 00 can0 69D [7] 31 00 FA 01 26 00 00 can0 180 [7] D2 1D FA 01 26 1C 00 can0 69D [7] 31 00 FA 01 12 00 00 can0 180 [7] D2 1D FA 01 12 03 00
I had to install python from sources to get working as python in packages is outdated. I'm not sure what driver use to get it working?
/usr/local/bin/python3 pyHPSU.py -l EN -c t_hc_set -c t_dhw_set -c t_ext -c t_outdoor_ot1 -c ta2 -o JSON -v 1 Traceback (most recent call last): File "pyHPSU.py", line 148, in
main(sys.argv[1:]) File "pyHPSU.py", line 88, in main hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code) File "/root/pyHPSU/HPSU/HPSU.py", line 58, in init desc = row[2] IndexError: list index out of range /usr/local/bin/python3 pyHPSU.py -l EN -d EMU -c t_hc_set -c t_dhw_set -c t_ext -c t_outdoor_ot1 -c ta2 -o JSON -v 1 Traceback (most recent call last): File "pyHPSU.py", line 148, in
main(sys.argv[1:]) File "pyHPSU.py", line 88, in main hpsu = HPSU(driver=driver, logger=logger, port=port, cmd=cmd, lg_code=lg_code) File "/root/pyHPSU/HPSU/HPSU.py", line 58, in init desc = row[2] IndexError: list index out of range Need your help to get pyHPSU working with can0 in this device.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi8tiXGUBXfDmje2QOG58F5_5B0Al3Fks5tKHgtgaJpZM4RdKhk .
I don't think it's translation related
Test on my system with my Dutch file:
$ python3 pyHPSU.py -d PYCAN -l NL -c mode [{'timestamp': 1515916353.667485, 'name': 'mode', 'resp': '1.00'}]
With Italian file:
$ python3 pyHPSU.py -d PYCAN -l IT -c mode [{'timestamp': 1515916363.129315, 'resp': '1.00', 'name': 'mode'}]
With English file:
$ python3 pyHPSU.py -d PYCAN -l EN -c mode
Traceback (most recent call last):
File "pyHPSU.py", line 148, in
With German file, which has a different issue:
$ python3 pyHPSU.py -d PYCAN -l DE -c mode
Traceback (most recent call last):
File "pyHPSU.py", line 148, in
The t_room1_setpoint entry is missing from the German file.
$ grep t_room1_setpoint /etc/pyHPSU/* /etc/pyHPSU/commands_hpsu.csv:t_room1_setpoint;31 00 05 00 00 00 00;190;d;10;w /etc/pyHPSU/commands_hpsu_EN.csv:t_room1_setpoint;T Room 1 Setpoint; Setpoint 1 value /etc/pyHPSU/commands_hpsu_IT.csv:t_room1_setpoint;T-Ambiente 1; Valore nominale della temperatura ambientale in C, che vale per il primo di accensione /etc/pyHPSU/commands_hpsu_NL.csv:t_room1_setpoint;T Room 1 Setpoint; Setpoint 1 value
$ wc -l /etc/pyHPSU/* 1 /etc/pyHPSU/canpi.ini 50 /etc/pyHPSU/commands_hpsu.csv 44 /etc/pyHPSU/commands_hpsu_DE.csv 50 /etc/pyHPSU/commands_hpsu_EN.csv 50 /etc/pyHPSU/commands_hpsu_IT.csv 50 /etc/pyHPSU/commands_hpsu_NL.csv 44 /etc/pyHPSU/commands_hpsu_NL.csv.orig 7 /etc/pyHPSU/EMONCMS.ini 296 total
The original Dutch and German files only have 44 lines instead of 50.
with kind regards, / met vriendelijke groet,
Stefan van der Eijk
On Sat, Jan 13, 2018 at 8:24 PM, peak-load [email protected] wrote:
I don't think it's translation related
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-357459510, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi8trTu9M_26y9aktBas_eti7W_JaLWks5tKQLtgaJpZM4RdKhk .
Try it with the italian translation.... "-l IT". Seems the only file that works. I added a pull request that fixes this an some other errors....but there is nobody to accept his request.
But you can also use my fork....
Guys I copied content from rotex-g1 device https://github.com/peak-load/rocon-g1 I see there bunch of outdated and vulnerable nodejs modules and debian packages.
Rotex-g1 is running code from that directory, so maybe will be useful for someone to check how Rotex guys dealing with can bus (commands and codes are there in source codes).
Wow. How did you do that?
I had a brief email conversation with rotex about what credentials to use to login to the device, as at the time I thought it would be a good idea to let my domotica system talk with the g1. The support engineer didn't understand that I wanted access to the g1 device, so after a few emails I gave up.
[image: Inline image 1]
with kind regards, / met vriendelijke groet,
Stefan van der Eijk
On Tue, Jan 23, 2018 at 8:53 PM, peak-load [email protected] wrote:
Guys I copied content from rotex-g1 device https://github.com/peak-load/ rocon-g1 I see there bunch of outdated and vulnerable nodejs modules and debian packages.
Rotex-g1 is running code from that directory, so maybe will be useful for someone to check how Rotex guys dealing with can bus (commands and codes are there in source codes).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-359909921, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi8thk4F9Yj5KECpCF3ewAk7-w6UCBqks5tNjjDgaJpZM4RdKhk .
@svde It's beaglebone black inside, with root user. I started from microsd card mounted disk, chroot-ed and then passwd root did all the magic. Btw, Rotex guys recklessly allowed root access for everyone over ssh thinking that only they know root password.
My rotex-g1 mmc disk copy (download, xz, then mount under Linux system, it's ext4 fs is there:
https://mega.nz/#!UBAF0JyR
Decryption key: !YV_zFloYonvcGYt0V_EaUBIamqQ-6EsLfAkeRVB1xgs
$ file mmcblk1.fs
mmcblk1.fs: Linux rev 1.0 ext4 filesystem data, UUID=1b4531c9-c25a-466a-9fee-5e8896b5ec3d, volume name "BEAGLEBONE" (extents) (large files) (huge files)
ls -lah mmcblk1.fs.xz
-rwxrwxrwx 1 user staff 163M Jan 1 00:00 mmcblk1.fs.xz
$ shasum -a512 mmcblk1.fs.xz
b4718a158473c6e4a5c879ca2c5d49daa0d86dd37d3fe375d3a0ca1a3f8b61d0e1a474e66133e6bb8b1ddb96b6693afc2f5f61d1481cb3a224f8f07165d97ca2 mmcblk1.fs.xz
It was not easy at start , but was very trivial when it'd done! I give credits to #beaglebone guys at irc.freenode.net
Short instructions
-
Download Debian 9.2 2017-10-10 4GB SD IoT image image from http://beagleboard.org/latest-images and dd to microsd card. https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz
-
Put sd card into beaglebond slot and restart it, you will be booted into debian with default login and password
-
Mount mmc disk, chroot, passwd
Perhaps we should create a forum or a chat or something...I think its not the right please to discuss here :)
I created a secrect facebook group. You can contact me on Facebook (daniel.spannbauer.12) to get access to that group.
Hi Daniel (and all) I'm interested in getting access to that group so to follow the evolution of this work I've tried to search for "Daniel Spannbauer" but I've found at least 5 accounts with your name... Can you provide additional information, please? Thanks Marco
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Mail priva di virus. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
2018-02-22 14:04 GMT+01:00 Spanni26 [email protected]:
I created a secrect facebook group. You can contact me on Facebook (Daniel Spannbauer) to get access to that group.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-367674235, or mute the thread https://github.com/notifications/unsubscribe-auth/AX76Yq8WTG9OTm1tXhxwLmWPbBO5Aaqxks5tXWXegaJpZM4RdKhk .
daniel.spannbauer.12 is the right account on facebook.
You can also look for "Stefan van der Eijk" on facebook, pick the one with the ski helmet in the profile picture.
with kind regards, / met vriendelijke groet,
Stefan van der Eijk
On Thu, Feb 22, 2018 at 11:31 PM, itmanone [email protected] wrote:
Hi Daniel (and all) I'm interested in getting access to that group so to follow the evolution of this work I've tried to search for "Daniel Spannbauer" but I've found at least 5 accounts with your name... Can you provide additional information, please? Thanks Marco
<http://www.avg.com/email-signature?utm_medium=email& utm_source=link&utm_campaign=sig-email&utm_content=webmail> Mail priva di virus. www.avg.com <http://www.avg.com/email-signature?utm_medium=email& utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
2018-02-22 14:04 GMT+01:00 Spanni26 [email protected]:
I created a secrect facebook group. You can contact me on Facebook (Daniel Spannbauer) to get access to that group.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-367674235, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AX76Yq8WTG9OTm1tXhxwLmWPbBO5Aaqxks5tXWXegaJpZM4RdKhk> .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-367845408, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi8tllBm4m4blcoywQlUMQDE6NCsNYjks5tXeragaJpZM4RdKhk .
Hi, I'm thinking of purchasing the Rotex Gateway RoCon G1 for my HPSU compact system. Do you guys recomend it?
The main purpose is to be able to control (turn off/on) the DHW pump via Homekit/Homebridge.
Thanks for your feedback
You can control it from an android/ iPhone app. It doesn’t integrate with anything else (no HomeKit / HomeBridge).
On Thu, 10 Jan 2019 at 19:20, migabc [email protected] wrote:
Hi, I'm thinking of purchasing the Rotex Gateway RoCon G1 for my HPSU compact system. Do you guys recomend it?
The main purpose is to be able to control (turn off/on) the DHW pump via Homekit/Homebridge.
Thanks for your feedback
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-453199953, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi8trnvDKUwyLHajARAwSUDDZgITsP-ks5vB4SKgaJpZM4RdKhk .
-- Sent from my iPhone
Yes, I'm aware of that. But given that it allows web access (https://www.rotex-control.com/) it should be possible to write a plugin for homebridge.
Anyway, do you recommend this gateway? What exactly will I be able to control with it? Do you know if Rotex provides some sort of demo account so I can see what features/controls are available?
You can control temperature (both Room and DWH), select Heating mode and basically that's it. Not much fun. Inside it's beaglebone with quite is old code which is not maintained well from what I see.
On Thu, Jan 10, 2019 at 7:47 PM migabc [email protected] wrote:
Yes, I'm aware of that. But given that it allows web access (https://www.rotex-control.com/) it should be possible to write a plugin for homebridge.
Anyway, do you recommend this gateway? What exactly will I be able to control with it? Do you know if Rotex provides some sort of demo account so I can see what features/controls are available?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-453208919, or mute the thread https://github.com/notifications/unsubscribe-auth/AgnydZaj9dMCuB_RLMjJ37jaJFne5XdOks5vB4rcgaJpZM4RdKhk .
--
With regards, Eugene Sudyr
Is it possible to turn off/on the heat pump? Where do you recomend I buy the gateway. Are there used units on sale?
Thanks,
You can only control it from the app.
Not from the rotex-control.com website. The website only allows you to see some values from the heat pump, but not change anything.
I only use the app to switch from standby to automatic1 when I return from vacation. The pyHPSU software can do the same thing.
On Thu, 10 Jan 2019 at 20:13, migabc [email protected] wrote:
Is it possible to turn off/on the heat pump? Where do you recomend I buy the gateway. Are there used units on sale?
Thanks,
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/zanac/pyHPSU/issues/11#issuecomment-453217599, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi8tqt5Har-30kMzEcM6pwhZrUtWtMFks5vB5DngaJpZM4RdKhk .
-- Sent from my iPhone
You can only control it from the app. Not from the rotex-control.com website. The website only allows you to see some values from the heat pump, but not change anything. I only use the app to switch from standby to automatic1 when I return from vacation. The pyHPSU software can do the same thing.
Thanks for your feedback Are you also using the pyHPSU software. What can you control with it?
Look at the commands_hpsu_*.csv-files. There you can the which commands pyHPSU supports. More commands are supported by the fork https://github.com/Spanni26/pyHPSU spports more commands.
Is it possible to turn off/on the heat pump? Where do you recomend I buy the gateway. Are there used units on sale?
Thanks,
https://www.heizungdirekt24.de/product_info.php?info=p2220_rotex-gateway-rocon-g1.html
I just found out that my heat pump (HPSU compact 516) does not have the Rcon module . so we cannot connect the Rcon gateway to it Instead it has XR1P circuit board with connection terminal bar at the bottom (X1). I'm currently controlling my heating (on/off) by remotley shunting the terminals RTN and RTH on that X1 module. Does anybody here know the corresponding terminals for turning On/Off the DHW?
Do you have a link to the manual of your heatpump? According to the manual I've downloaded of the 516 you should have a RoCon-BM1 board in it. That board contains a canbus connector where the RoCon-G1 is connected to, or a canbus device (like a usbtin) so you can use the pyHPSU software.
I just found out that my heat pump (HPSU compact 516) does not have the Rcon module . so we cannot connect the Rcon gateway to it Instead it has XR1P circuit board with connection terminal bar at the bottom (X1). I'm currently controlling my heating (on/off) by remotley shunting the terminals RTN and RTH on that X1 module. Does anybody here know the corresponding terminals for turning On/Off the DHW?
Do you have Fotos of the electronics?
Only gen4 and 5 have the RoCon module Mine is gen3
Hi,
I have to install a rocon u1, and use same connection j13 that now I'm using to minitor rotex, can I connect both system at same time without any problems? What is the recommended way?
Thans
HI,
I'm controlling my Heating (on/off) by remotely shunting the terminals RTN and RTH on this X1 board (see picture).
I need to do the same thing for DHW
Does anybody here know which terminals control (on/off) the DHW?
Hello,
The disk copy (dd) is no longer available at the MEGA sharing platform. Can you please repost the file. By the way nice reverse engineering work done.
@svde It's beaglebone black inside, with root user. I started from microsd card mounted disk, chroot-ed and then passwd root did all the magic. Btw, Rotex guys recklessly allowed root access for everyone over ssh thinking that only they know root password.
My rotex-g1 mmc disk copy (download, xz, then mount under Linux system, it's ext4 fs is there:
https://mega.nz/#!UBAF0JyR
Decryption key: !YV_zFloYonvcGYt0V_EaUBIamqQ-6EsLfAkeRVB1xgs
$ file mmcblk1.fs mmcblk1.fs: Linux rev 1.0 ext4 filesystem data, UUID=1b4531c9-c25a-466a-9fee-5e8896b5ec3d, volume name "BEAGLEBONE" (extents) (large files) (huge files)
ls -lah mmcblk1.fs.xz -rwxrwxrwx 1 user staff 163M Jan 1 00:00 mmcblk1.fs.xz
$ shasum -a512 mmcblk1.fs.xz b4718a158473c6e4a5c879ca2c5d49daa0d86dd37d3fe375d3a0ca1a3f8b61d0e1a474e66133e6bb8b1ddb96b6693afc2f5f61d1481cb3a224f8f07165d97ca2 mmcblk1.fs.xz
It was not easy at start , but was very trivial when it'd done! I give credits to #beaglebone guys at irc.freenode.net
Short instructions
- Download Debian 9.2 2017-10-10 4GB SD IoT image image from http://beagleboard.org/latest-images and dd to microsd card. https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz
- Put sd card into beaglebond slot and restart it, you will be booted into debian with default login and password
- Mount mmc disk, chroot, passwd
Hello,
The disk copy (dd) is no longer available at the MEGA sharing platform. Can you please repost the file. By the way nice reverse engineering work done.