Monitor and control Daikin/Rotex (hybrid/Altherma) heat pumps via the 2-wire P1/P2 thermostat interface with an ATmega328P, ESP8266, and electronics. The P1P2Serial library and P1P2Monitor program perform low-level bus operation, the P1P2-bridge-esp8266 program interprets data from/to MQTT supporting Home Assistant MQTT discovery. P1P2Serial may also be used for other Japanese Home Bus System based standards: DIII-NET (F1/F2) bus, Mitsubishi M-Net bus, Toshiba TCC-Link, Hitachi H-link, Panasonic/Sanyo SIII-Net, Haier, York, and others.
Other
326
stars
62
forks
source link
P1P2Monitor: Added platformio configuration for the P1P2Monitor #125
I have created platformio configuration for the Monitor. This allows you to use VSCode for development which is much mode comfortable.
You can display error and warnings:
You can define build profiles. Which means that you can setup Arduino BSP and libraries as you wish in very easy way. Such definitions allows you to define different versions of libraries for each version as the configuration is stored together with sources.
I have changed sketch extension from INO to CPP because INO files have limited support in platformio. I was not able to see list of issues (errors/warnings) detected during compilation.
Hi @Arnold-n
I have created platformio configuration for the Monitor. This allows you to use VSCode for development which is much mode comfortable.
You can display error and warnings:
You can define build profiles. Which means that you can setup Arduino BSP and libraries as you wish in very easy way. Such definitions allows you to define different versions of libraries for each version as the configuration is stored together with sources.
And probably also debug code (I have not tried it yet) - https://www.youtube.com/watch?v=T7OGXvEXY9Y
Another possible advantage is to use Copilot for code refactoring, improvements and writing of unit tests.
I have created configurations for both the Monitor and the Bridge.
Bridge build:
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html PLATFORM: Espressif 8266 (4.2.1) > Espressif ESP8266 ESP-12E HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES: