Closed 7wells closed 2 years ago
Hi, I don't understand exactly what you want to know. Is it about the realisation of the control of the TRUMA from HA, e.g. what the frontend looks like? Or is it about the functionalities as a whole?
Would you be so kind to send me the link for the webinar, mentioned above
If I'm right, you are interesting in the whole smart motorhome-concept? Right?
Unfortunately, I could attend his webinar only in part but have not seen a link to its recording. You find the announcement there, along with another link to older slides of him: https://poesslforum.de/forum/mein-poessl/21645-konfettis-kasten-heizungssteuerung#401001
And yes, I was wondering of your "whole setup", understanding that this might be too much to discuss here. Maybe you could give only a few bullet points about which gear you have in place and how they exchange data? (hardware/software) But please do not waste your time just because I asked. 😀
Coming back to your mention of how to control the Truma from HA: This is indeed very interesting. I had HA on my RPi4 but abandoned it, because I wanted to keep the possibilities that come along with a regular Raspberry Pi OS. On the other hand, I liked HA very much, so I plan to revisit it.
I have already taken your suggestion on board. You can now find an example of my current frontend in the docs.
Yes, indeed, the "whole setup" is too much not for the issue pages. But I will also take your suggestion and make a separate repository for this item. But give me a little time, pls.
Is your ESP32 now in use?
Yes, it is plugged into my laptop and connected to my Wifi but now yet in/to the motorhome. I am going to flash the software from your latest updates.
I saw under /doc/ an updated README.md with an example of a front-end realisation with a lovelace card in HA, which I like very much. Will you add this to the main README.md on the front page, and could you please - if your time permits it - later add some further information about the lovelace? Could I copy/paste it when I have HA on my RPi4? Before I install HA on my RPI4, I first need to ensure that I will not need the mqtt server on that RPi, or do you have mqtt service installed as HA addon?
Yes, you should be able to c/p it, because the entity-names should be the same.
`type: vertical-stack cards:
I think it's a great idea to put it on the site as well. But for me it's more of a side note that doesn't belong on the main page of the project. There are a lot of people who realise it in other systems. We have planned to publish other examples there as well. Okay for you?
Yes, sure, you are the boss here! 😃 Maybe I will add some notes in my gists for this, but first I need to get things going in general.
And thank you very much for providing support and all that great information! 👍
I am already looking forward to the discussions with you on the "whole setup".
Yeah, I feel that I definitely need to get HA back, but I fear to lose some functionalities by thus abondoning Raspberry Pi OS. Well, let me ponder about this a couple of days to get a better idea where this might lead me to. Cheers! 😄
All of life is a compromise! Cheers!
Which functionality would you lose?
The possibility to install any Debian package and support of other attached hardware.
Just a short PS: I now have the full Home Assistant (HA) OS running on my RPI4. At the moment (AFAIK), HA OS has no support for the Pimoroni Automation HAT (which I have attached to my RPi4), but maybe there is a way to access it nevertheless. I asked about it in the HA community there.
Hi Magnus, please allow me quoting you from another issue about the MQTT topic homeassistant/
:
They are very much relevant when you set up the Home Assistant server. Then you do not need to define any entities, they will simply appear.
Yes, it works, and I am really very impressed:
While I realise that this is no "issue", I hope you do not mind that I did this very simple dashboard from my Home Assistant (running on a Raspberry Pi 4 with HA OS) with the MQTT broker add-on. The entities coming as subscribed topics from the truma-service were indeed automatically added to HA. Thus, it is very easy to create such dashboards - also more sophisticated ones thank my first example below. It shows the air and water temperatures in my motor-home, as they are measured by my Truma Combi 4 sensors.
I have not yet experimented with changing/setting variables like target water or air temperature, but this should be easy, too, in HA (keeping in mind that since parameters can only be changed/set in combination).
Maybe this is helpful for future reference or to inspire other interested people.
Hi Magnus, after c/p of your YAML code into my HA, I can set the room heating successfully:
I checked the CP+ display in the car. It shows the room air temperature to 18°C and the icon of the gas bottle, and the Combi is heating. This is really great! 👍
On that HA card (under "Einstellungen"), I only selected "Raumtemperatur" => 18 and "Lüfter-Mode (off, eco, high) => eco but kept everything else untouched, i.e. "Energie_Mix (gas, electricity, mix) is empty and "EL_Power (0, 900, 1800)" is 0, which is ok for my non-E Combi 4, I assume.
PS: I don't know why the yellow status icon on my above screenshot is subtitled by "Running", whereas my HA instance now shows in German "Läuft" but that has nothing to do with your code. I add this here in case you or somebody else stumbles over this. Maybe this was a leftover after I changed my HA language setting. 😉
@mc0110 BTW, how did you manage to show the legend for min/mittel/max in that standard graph?
I have the same but the three icons do not appear there. Apart from this, there are no plots for min/mittel/max but that is another topic anyway (I just wondered about the legend itself).
Speaking about HA cards: Could it be helpful for other users to collect HA card examples in YAML code that might be of interest for the Truma parameters? Then, they would have a good starting point for further explorations. Understanding that HA is a bit out of scope of your project (or is it not? 😉), it's perfectly fine if you do not want to spend time on this. But if you gave me some advice where to collect such, I could do it. Maybe as an "issue" is not ideal. Would the GitHub "Discussions" function help? (I never used it before) Or should I store such examples in my own GitHub account as public gists? This is nothing urgent at all.
Sorry, Magnus, but I have another HA-related question:
As you can see below, HA shows the heating to be off (indicated by the 2 highlighted items), and I confirm that this is true (went into my motor-home and checked), i.e. my CP+ display shows that the room air temperature is set to 0 and the fan is set to off.
However, under "Einstellungen", the HA card still shows "Raumtemperatur" set to 18 and "Lüfter-Mode" to eco.
Shouldn't the HA card update the "Einstellungen" accordingly? Is this related to your tool or an HA-related issue? (I couldn't tell, hence my question).
This is unfortunately true and a stupid behaviour of the HA - especially with select-entities. You only see sensor-entities in the upper fields (up to "Settings") and they are constantly updated. The lower select-entities, below "Einstellungen" on the other hand can be changed in Lovelance and then HA publishes the command once via the MQTT server. So - imported to know - the value has to be changed for re-sending something to the MQTT.
I will therefore replace the selections with buttons in an "improved" version of the frontend, which will then trigger the MQTT commands in an automation. But that's fine-tuning, once the inetbox has had its teething troubles removed. In particular, I can implement such things without having to sit in the vehicle.
Yes, I know what you mean about sitting in the vehicle.
BTW and a bit OT: Is there a way to change code on the ESP32 over Wifi?
EDIT: My bad, I had written "coffee" instead of "code". Changing coffee an the ESP32 is certainly not a good idea. ☺️ So the question is, if we can change your code on the ESP32 over Wifi.
@mc0110 If I see it correctly, this screenshot shows buttons to change values:
Is this project (98% Python) maybe helpful for you, too?
Hi Magnus! Do you use your project with home-assistant? Can you maybe share some more details about the setup? I understand that this is not an "issue" about inetbox2mqtt but would be very happy to get a better understanding what is possible (and maybe also what not) from your experience. I already know about Daniel's setup (at least from his slides and recent webinar) but that was already very much advanced for me. ;) Wishing you all a nice weekend! :)