mc0110 / inetbox2mqtt

communicate over mqtt protocol to simulate a truma inetbox
MIT License
85 stars 18 forks source link

How to access ESP32 with inetbox2mqtt from remote? #37

Closed 7wells closed 1 year ago

7wells commented 1 year ago

Hi Magnus,

I hope my message finds you well.

My spare ESP32 now runs flash_esp32_inetbox2mqtt_v210_4M.bin. It is connected to my Wifi at home, and I can see its IP on my Fritzbox. However, I cannot access any web GUI and assume that this is only available in OS mode. Is this correct? If yes, is there a way to get it back to OS mode from remote, or do I have to walk back to my car, unplug the ESP32 from the CP+/Truma, and bring it back to my PC?

Thanks for your help, and greetings 7wells

mc0110 commented 1 year ago

Hi my friend,

the web GUI is, as correctly assumed, only accessible in OS mode. The MQTT connection can be used with the command

  topic: service/truma/set/os_run      payload:1 

OS mode will be reactivated. The ESP32 then reboots and starts with the web interface.

Best regards and a nice evening M.

7wells commented 1 year ago

@mc0110 Sorry, dear Magnus, to revisit this thread, as I still have difficulties in understanding. 😊

I just set everything up in "OS Run" mode in the GUI (i.e. providing Wifi credentials and connecting to my car router). Here I thought it's time to switch to "Normal Run" mode, so I clicked on the button "OS Run" as the README says:

After entering the login credentials, the boot mode can be switched from "OS-Run" to "normal-run". The button toggles between the two states.

After rebooting in "normal-run" mode, inetbox2mqtt is ready for use.

Could you maybe please consider making the button label a bit clearer as to show the user that the label shows either the current state or what will happen on click or even both? It surely does not need to be fancy but maybe some addition in parentheses would help, e.g.:

Switch to OS Run (current mode: Normal Run) Switch to Normal Run (current mode: OS Run)

Now in my case the button shows "Normal Run" in the GUI, which is still visible. Didn't you previously confirm that the web GUI is only accessible in OS mode. How come that I can still see the GUI after switching from OS Run to Normal Run? Or is this yet another mode I am not aware of?

Sorry that I might appear rather stupid - and thanks for your patience with me! 👍

mc0110 commented 1 year ago

Did you try to get a GUI answer, if you are in "Normal RUN". I assume, you won't get an answer. This is the normal behavior for ESP32 and RPI.

All in all, I'm not sure at the moment if it makes sense to make further cosmetic adjustments. Testing and quality assurance are really work-intensive and I haven't really received any feedback (except from you) for months. I lack motivation there. Besides, there is also an ESPHome version that Fabian built, but it uses different entities. So it's not convergence, but unfortunately, as is often the case, rather divergence.

Since TRUMA has also discontinued CPplus, the whole project has no real future. I have had the 2.1 version running in my camper for several months without any problems. That was the real goal and it has been achieved.

7wells commented 1 year ago

Dear Magnus,

You are right, the GUI would not load anymore at that stage, which I now understand.

And I see your point and agree with you. I would not be too enthusiastic either to spend much more time in something that works for me.

So let me thank here as well very much for all the great work and your spare time that you invested to make this possible. 👍

I'm still a bit struggling with the overall setup, but that is rather due to my character, not being able to persistently follow one route but rather trying this and that. Eventually, my better half will tell me to stop it or get done with it. 😁 And as the new season is coming closer very quickly, I shall stop experimenting. 😃

My best wishes for you, very nice camping experiences, and all the best! 🍀

mc0110 commented 1 year ago

Stop experimenting. I can only recommend that.

Thank you for the really great suggestions and I agree with you that there may be easier ways. I tried to make the whole thing as elegant and simple as possible in upython, but I admit that this may not have worked out optimally.

7wells commented 1 year ago

Yes, it did, and I'm grateful for the time you spent on this and the possibilities this has offered.