-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on Pi Pico W #169
Comments
esphome:
platformio_options:
build_unflags:
- "-std=gnu++11"
build_flags:
- "-std=gnu++17"
name: heatpump
friendly_name: HeatPump
rp2040:
board: rpipicow
framework:
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "***"
ota:
- platform: esphome
password: "***"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "Heatpump Fallback Hotspot"
password: "***"
external_components:
- source: github://sfozz/esphome-mitsubishiheatpump
climate:
- platform: mitsubishi_heatpump
name: "${friendly_name}"
horizontal_vane_select:
name: Horizontal Vane
hardware_uart: UART1
baud_rate: 4800
|
Man I wish i found this a few hours ago as I just went through this myself and repeated your work. Although rather than adding the #include i changed the references to std::optional in espmhp.h to esphome::optional I made it one step further though. In the SwiCago/HeatPump library it defines I've got a fork with the change here, you'll need to edit
All i can say is with that addtional change I was able to compile it and load it on the PicoW, I still need to physically connect it to a heatpump to see if it actually works. |
The above changes were enough to compile but not enough to get it to work apparently. One more change i've identified: Needs to properly select when PLATFORM is RP2040 otherwise the wrong serial will be selected. Here's my attempt though it seems to have stopped me from doing wireless updates after making this change.
See here:
|
@ngist thanks for looking into this... I'll have a look this weekend and update here! |
No problem, one other thing worth mentioning before you hook this up to your unit. Do you have an interface circuit for the PicoW? As I understand it the CN105 uses 5v for the serial lines for the PicoW-TX->CN105-RX connection you should be able to wire it directly no need to step up the voltage as the output level is above the standard Vih 2v threshold, same with the 5V power and ground. For the CN105-TX->PicoW-RX, you'll want something to step down the voltage from 5V to 3V a resistor divider, diode solution, level shifter or whatever. The PicoW inputs are not 5V tolerant. |
Couple of build issues when building for this target.
I've added the following to allow the builds to get started
Following this I had to add the build options from here but the builds were still failing... so I added the following as suggested by
g++
I'm now getting the following errors, which are well outside of my c++ chops
The text was updated successfully, but these errors were encountered: