Yes, this is for this case. According to the manual this is the way to activate it. Are you using comfosense controller?
Press OK. The text says SHIFT for 8
seconds.
Press MENU before the text SHIFT
disappears. The text says COMF.
Press once. The text says FAN.
Press OK to confirm. The text says
IN, OFF.
Press or to choose which fan
to switch on or off. The following
options can be chosen:
■ IN OFF = Switch off the supply
fan;
■ OUT OFF = Switch off the
exhaust fan;
■ BOTH ON = Switch on both fans.
Press OK to confirm. The text says
SAVED for 2 seconds. The menu is
automatically closed. The symbol of
the chosen option is visible.
The problem is that I don’t know how to monitor what is being sent by the device So far only commands that have been described in the protocol documentation are implemented in this integration.
OK, got it. I think this panel is not communicating with the unit via RS232 but controls it directly. And options here are limited. I guess it won’t send any data on serial interface when you click on those buttons.
however connecting RS232 gives an ComfoNet error.
Am I right that this can be not a RS232 socket and in this case your solution does not work?
Here is my mainboard connection:
AerisNext (this is the same as ComfoAir Q) is not compatible with serial / RS232 connection. You can’t control it with this integration. Also ComfoNet is not a serial protocol (not sure exactly what it is, probably something like modbus). To integrate this with HA you need the network interface ( ComfoConnect LAN C) and the official integration:
It looks like CAN BUS or NMEA2000 which is also modification of CAN BUS. I will try to arrange CAN interface for PC and try to research something. Thanks.
Hey everyone,
I found this guide searching for a way to integrate my Zehnder CA550 (non-Q) into my HA.
However, I can’t find the mentioned RJ45 plug on my unit.
I found an empty RS232-port, but the only RJ45 port I could find was connected to (what looks like) a daughterboard. The RS232 port is labeled with RS232 - KFB.
So can I just plug the RS232 directly from the unit into the RS232-USB adapter in the Pi?
Thanks!
Hi!
I have just started to work on hooking up to my CA350, but I think I’m hitting some of the cable-related issues here but not sure
SETUP
I am using a Pi4 with a renkforce RS232 board:
I connected this DIRECTLY to the RS232 port in the top of the unit (so no RJ45 or USB involved anywhere!)
STATUS:
When starting the comfoair2mqtt service I sometimes get SOME data (but usually nothing). I was able to see some temperature sensors once and some filter status…
What usually happens is after a while I get following errors:
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: get_ventilation_status function could not get serial data
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: Serial command write and read exception:
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: (<class 'serial.serialutil.SerialException'>, SerialException('write failed: [Errno 5] Input/output error'), <traceback object at 0x7f8d9b0d40>)
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: get_filter_status function could not get serial data
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: Serial command write and read exception:
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: (<class 'serial.serialutil.SerialException'>, SerialException('write failed: [Errno 5] Input/output error'), <traceback object at 0x7f8d9b0c80>)
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: function get_filter_weeks could not get serial data
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: Serial command write and read exception:
Feb 16 22:11:40 raspberrypi python3[534]: 16-02-2022 21:11:40 WARNING: (<class 'serial.serialutil.SerialException'>, SerialException('write failed: [Errno 5] Input/output error'), <traceback object at 0x7f8d9b0d40>)
pi@raspberrypi:~ $
It seams that I have to keep my ComfoSense connected! Otherwise the status of the comfoair MQTT payload remains “offline”
I don’t know if I’m using the correct path to specify my serial port (assuming /dev/ttyS0)
Those errors for sure mean you don’t have a connection with the serial port. Please check if you are using the right one. I don’t have experience with those rpi extension boards, I think it should work.
OK, so I have made the connection through an FT232 board like this one:
and connected only the 3 pins RX/TX/GND (without the VCC).
As I understand, the output from the ComfoAir350 serial port is 12V on the VCC pin - but the FTT232 VCC only accepts 3.5 or 5V on it’s VCC so I am NOT connecting it as it will fry the board.
So, the question is - should this work with only 3 pins connected or do I need to come up with a way to step down the VCC (12v from CA350) down to 5V (acceptable by the FT232 converter)?
I’ve been connecting everything I have lying around and the closest I got was when I connected the above mentioned RS232 extension board (the red one).
It seems it’s working - …sometimes. I got some initial data, e.g.:
but then it just stops updating anything. Also, I’m not able to control anything.
Basically it looks as if the connection is super unstable
So, I tried FT232 with FTDI, some USB UART, etc. but now I’m just thinking would it be ok to connect the 3 pins mentioned in the pictures above (without the Vcc pin - as it’s 12v so would potentially fry my Raspbery Pi)?
Otherwise, could You detail what kind of connector should I get? In the picture is talks about “DB9 (RS232) / USB adaptor” and then DB0 (RS232) / RJ45 adaptor" but are these with any chips inside them like FTDI or MAX3232, etc. Could You maybe show some exact cable i can get?
Try to run the script from command line e.g. python3.8 ca350. It is quite talkative so you’ll see what’s happening. If it starts to work I would stick to that setup, RS232 should rather be quite stable although this specific hardware is not the most reliable (or maybe it is a question of knowing the serial protocol better). I’m using just straight serial cable with rs232 connectors on both ends so won’t help you much with selecting the one that should work. Other people are usually using RS232-USB adapters or cables.
OK, I have went back and re-did everything trying to test each step:
Re-installed raspi Pi4 OS (Raspbian)
Tested that serial port is working correctly
→ I have connected the RS232 plug, connected pins 2&3 (Tx/Rx) together and verified that I was seeing the text entered into the terminal. In other words, I created a loopback between Tx and Rx so that whatever I typed in was also being received.
I have followed the following steps to install hacomfoairmqtt:
cd /usr/local/share/mytmp
sudo cp src/config.ini.dist /usr/local/share/ca350/bin/config.ini
Updated the params:
[DEFAULT]
# Serial port CA350 RS232 / RS485 direct or via USB TTL adapter
SerialPort=/dev/serial0
# Select RS232 or RS485 protocol
RS485_protocol=False
# Interval in seconds at which data from RS232 will be polled
refresh_interval=10
# automatically enable PC Mode (disable comfosense)
enablePcMode=True
debug=False
[MQTT]
# MQTT broker - IP
MQTTServer=192.168.12.xxx
# MQTT broker - Port
MQTTPort=1883
# MQTT broker - keepalive
MQTTKeepalive=45
# MQTT broker - user - default: empty (disabled/no authentication)
MQTTUser=xxx
# MQTT broker - password - default: empty (disabled/no authentication)
MQTTPassword=xxx
NOTE: I have tried with both settings:
enablePcMode=True
&
enablePcMode=False
and with both ComfoSense connected and disconnected.
Each time I have started the script using:
sudo python3 /usr/local/share/ca350/bin/ca350
Every execution produces the same result:
*****************************
* CA350 MQTT Home Assistant *
*****************************
21-02-2022 09:46:35 WARNING: Changing the RS232 mode went wrong
21-02-2022 09:46:35 INFO: Home Assistant MQTT Autodiscovery Topic Set: homeassistant/sensor/ca350_[nametemp]/config
21-02-2022 09:46:37 WARNING: get_temp function could not get serial data
21-02-2022 09:46:38 INFO: Home Assistant MQTT Autodiscovery Topic Set: homeassistant/climate/ca350_climate/config
21-02-2022 09:46:38 INFO: Successfull subscribed to the comfoair/comforttemp/set topic
21-02-2022 09:46:38 INFO: Successfull subscribed to the comfoair/ha_climate_mode/set topic
21-02-2022 09:46:38 INFO: Successfull subscribed to the comfoair/ha_climate_mode/fan/set topic
21-02-2022 09:46:38 INFO: Successfull subscribed to the comfoair/reset_filter topic
21-02-2022 09:46:38 INFO: Successfull subscribed to the comfoair/filterweeks topic
21-02-2022 09:46:39 WARNING: function get_fan_status could not get serial data
21-02-2022 09:46:41 WARNING: get_ventilation_status function could not get serial data
21-02-2022 09:46:43 WARNING: get_filter_status function could not get serial data
21-02-2022 09:46:45 WARNING: function get_filter_weeks could not get serial data
21-02-2022 09:46:47 WARNING: function get_filter_hours could not get serial data
21-02-2022 09:46:49 WARNING: function get_bypass_status could not get serial data
… and it goes on forever.
Is there a way to enable a more verbose (debug mode) to check why is the script not able to send/receive anything on the serial port?
Is there a way to verify if the script is producing correct traffic in serial port?