raomin / ESPAltherma

Monitor your Daikin Altherma / ROTEX heat pump with ESP32
MIT License
317 stars 104 forks source link

M5stickc Plus 2 problems #396

Closed luca320 closed 3 months ago

luca320 commented 4 months ago

Ciao a tutti. Premetto che utilizzo da anni una m5stickc, che ho programmato con il software visual studio. Non ho avuto alcun problema. Letture precise di tutti i sensori espaltherma. Ho comprato da poco una nuova m5stickc plus 2, che ho pensato di tenere di scorta nel caso la prima chiavetta dovesse non funzionare più. Ho formattato la m5stickcplus usando m5burner e uniflow dedicato al modello corretto, ho fatto upload del progetto selezionando la porta com corretta e come modello, non essendoci la plus 2, ho messo m5stickc plus. la procedura ha esito positivo, non ci sono errori e la scrittura sulla chiavetta va a buon fine. però non riesco a vederla online all'interno dei dispositivi collegati al router. Quale può essere il problema? Ringrazio chi si prenderà il tempo di rispondermi.

Hi everyone. Let me start by saying that I have been using an m5stickc for years, which I programmed with the visual studio software. I didn't have any problems. Precise readings of all espaltherma sensors. I recently bought a new m5stickc plus 2, which I thought I'd keep as a spare in case the first stick no longer works. I formatted the m5stickcplus using m5burner and uniflow dedicated to the correct model, I uploaded the project by selecting the correct com port and as the model, since there was no plus 2, I put m5stickc plus. the procedure is successful, there are no errors and the writing on the flash drive is successful. but I can't see it online within the devices connected to the router. What could be the problem? I thank those who take the time to answer me.

rkontrimas commented 4 months ago

I am new user of this project and I'm also having same problem. Also, screen is not showing any information after uploading, which I believe i should. Following this issue

MarkLofthouse commented 4 months ago

Same here - found another thread that says the code doesn’t work on the Plus 2, can we get a view if it’s in the roadmap before I return the plus 2? Thanks.

raomin commented 4 months ago

I'll have a look. Please open the serial monitor and paste the logs from the device.

MarkLofthouse commented 4 months ago

I'll have a look. Please open the serial monitor and paste the logs from the device.

Thanks rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 271414342, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:1184 load:0x40078000,len:13232 load:0x40080400,len:3028 entry 0x400805e4

My little bit of research says that M5StickC PLUS2 is an iterative version of M5StickC PLUS, featuring the ESP32-PICO-V3-02 chip, I also found someone saying on a forum the display pinout was different.

Thanks for looking.

raomin commented 4 months ago

Looks like there is no program on your device. Can you paste the upload process?

MarkLofthouse commented 4 months ago

Processing m5stickcplus (platform: espressif32; board: m5stick-c; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stick-c.html PLATFORM: Espressif 32 (6.5.0) > M5Stick-C HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Leaving... Hard resetting via RTS pin... ====================================================== [SUCCESS] Took 62.23 seconds ======================================================

Environment Status Duration


m5stickcplus SUCCESS 00:01:02.234 ====================================================== 1 succeeded in 00:01:02.234 ======================================================

smart40-githib commented 4 months ago

I've made a fork and added support for M5Stick Plus2 https://github.com/smart40-githib/ESPAltherma

It seems to work fine so far as I can tell as I won't be opening the heatpump until the summer.

There is a pull request to merge into this repo.

rkontrimas commented 4 months ago

@smart40-githib for me it also seem to work now, I see 2 new entities in HA(AlthermaSensor and AlthermaSwitch). I will try to connect to my heatpump tomorrow. Thanks!

--- Terminal on COM3 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
Querying register 0x20... Time out! Check connection
Querying register 0x21... Time out! Check connection
Retrying...
Querying register 0x21... Time out! Check connection
Retrying...
Querying register 0x21... Time out! Check connection
Retrying...
MarkLofthouse commented 4 months ago

Same here - thank you.

Will this get put into the main repo next?

MarkLofthouse commented 4 months ago

Morning, I can see an entity - sensor.none_althermasensors, however, it has no attributes, other than 'Online'.

I've uninstalled and re-installed MQTT - and get the same issues.

However, if I listen to the topics in MQTT, I can see all the data coming from the heatpump.

image

Any help appreciated - is there something wrong with the way the entity is being built at discovery? Thanks

MarkLofthouse commented 4 months ago

Might have found my problem - although not sure how to fix it.

image
rkontrimas commented 4 months ago

Errorneus JSON is caused by a small syntax error in mqtt.h line 29 col 91 (missing comma)

smart40-githib commented 4 months ago

Fixed the syntax error and battery voltage value. Can you try again please.

MarkLofthouse commented 4 months ago

Fixed the syntax error and battery voltage value. Can you try again please.

Thanks, just copied mqtt.h across to my deployment, and seems to be working fine.

luca320 commented 3 months ago

It seems to work and for that I am very grateful. However, the black screen problem persists. I don't understand why. I made this request for help for a friend. Now its works perfectly and the screen works too. In my case however the screen remains black. This also happened to me on the M5stickcplus, but the latter still works perfectly (I don't care much about having a working screen). I was hoping that in the m5stickcplus 2 the screen would work.

luca320 commented 3 months ago

I am new user of this project and I'm also having same problem. Also, screen is not showing any information after uploading, which I believe i should. Following this issue

Have you solved the black screen problem?

smart40-githib commented 3 months ago

The should come on and then turn off after 30 seconds. If you press the button on the front it should come on for another 30 seconds. Other than that I cannot help.

raomin commented 3 months ago

No answer? I guess it's solved by now.