mc0110 / inetbox2mqtt

communicate over mqtt protocol to simulate a truma inetbox
MIT License
86 stars 19 forks source link

How to place truma.yaml separately in Home Assistant? #31

Closed 7wells closed 1 year ago

7wells commented 1 year ago

Hi Magnus,

I needed to reinstall HA on my Pi4 and placed truma.yaml separately in the /config folder (besides configuration.yaml). Before, I had your truma.yaml code directly inserted in configuration.yaml but that got too large in the meantime, hence placing truma.yaml separately and referring to it from inside configuration.yaml seemed to be good to me. Following this guidance on splitting the HA onfiguration, I thought it works like this:

config/configuration.yaml

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# Truma inetbox2mqtt
#
truma: !include truma.yaml

I can save the configuration.yaml like this, but when I use the HA check of that config, it tells me:

Integration error: truma - Integration 'truma' not found.

I have no idea what I'm missing now. Can you please provide me with a hint? How have you set this up in your HA config? Thank you so much for your help!πŸ‘

7wells commented 1 year ago

BTW, when I paste your complete truma.yaml back into configuration.yaml, I can save this config, and HA does not complain that it cannot be (re)started with this updated config. However, there is a warning on save:

duplicated mapping key (115:1)

 112 |       seconds: 120
 113 |     precision: 0.1
 114 | 
 115 | automation:
-------^
 116 |   - alias: "TRUMA Fan"

automation does appear already before in configuration.yaml:

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

It does not seem to be severe but this speaks for rather separating truma.yaml. I cannot remember this warning in the past. It appears now maybe due to a meantime HA update.

Understanding that this is of very low priority and now show-stopper at all, I will wait patiently for your feedback. If you think that it's too off-topic and no issue, please feel free closing this.

And I must admit that my fingers itch updating to your latest inetbox2mqqt version. 😁 Since I now have a spare ESP32 here, I will simply try and let you know how far I came, if you are interested (in another "issue"?).

Furthermore, I now have a nice plastic box with transparent lid in which I plan to place all stuff to finally get rid of my "flying circus". πŸ˜„ However, GitHub is maybe not the right place to exchange such information. In case you can recommend another place (e.g. some RC car forum like poesslforum.de that comes to my mind), please let me know. Thanks!

mc0110 commented 1 year ago

The truma.yaml is a package in the HA logic. Please note this description: packages

mc0110 commented 1 year ago

You can find a German description under the link Schleeh. Hannes rebuilt it just like you and of course found all the trapdoors. This is the basis for his instructions.

If you flash the new version onto your ESP32, there will be no problems. This has already worked for many people without any problems and you have already bypassed the hurdles with the LIN connection.

7wells commented 1 year ago

Hi Magnus, thanks once more for your patience and the links to HA packages and the indeed also very helpful blog from Hannes.

Before I close my "issue" as completed, please allow me linking to this post: https://poesslforum.de/forum/elektrik/24639-automatisierung-ueber-raspberry-pi-openhab-und-evtl-tinkerforge?start=210#419288

πŸ˜„