INFO ESPHome 2025.2.0
INFO Reading configuration /config/esphome/slimmelezer.yaml...
Failed config
esphome: [source /config/esphome/slimmelezer.yaml:7]
name: slimmelezer
comment: DIY P1 module to read your smart meter
Please remove the `platform` key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: ESP8266
esp8266_restore_from_flash: True
board: d1_mini
name_add_mac_suffix: False
project:
name: zuidwijk.slimmelezer
version: 1.0
on_boot:
then:
- if:
First post the code properly quoted so it can be read and also post the error messages you get when you try to compile it
Also it’s not because there is a new version of ESPHome that you need to update your ESPs
Hi,
I need some help with the exact same problem. When I alter the config with the config shown here I get these new errors
INFO ESPHome 2025.2.0
INFO Reading configuration /config/esphome/slimmelezer.yaml...
Failed config
````Preformatted text`
esp8266: [source /config/esphome/slimmelezer.yaml:8]
board: d1_mini
restore_from_flash: True
[name_add_mac_suffix] is an invalid option for [esp8266]. Please check the indentation.
name_add_mac_suffix: False
[project] is an invalid option for [esp8266]. Please check the indentation.
project:
name: zuidwijk.slimmelezer
version: 1.2
[on_boot] is an invalid option for [esp8266]. Please check the indentation.
on_boot:
then:
- if:
-
Dominic, those two screen images don’t match. The bottom one (of yaml code) looks as though it is after you have fixed the error shown in the top image.
Also, posting images of code is generally not as helpful as posting the code itself. Use the </> button then paste the code between the backticks to keep it formatted correctly (because indentation is so often the problem).
What is your current yaml code and error message ?
---
substitutions:
device_name: slimmelezer
esphome:
name: ${device_name}
name_add_mac_suffix: false
project:
name: zuidwijk.slimmelezer
version: "1.2"
on_boot:
then:
- if:
condition:
lambda: return id(has_key);
then:
- lambda: |-
std::string key(id(stored_decryption_key), 32);
id(dsmr_instance).set_decryption_key(key);
else:
- logger.log:
level: info
format: "Not using decryption key. If you need to set a key use Home Assistant service 'ESPHome: ${device_name}_set_dsmr_key'"
esp8266:
board: d1_mini
restore_from_flash: true
wifi:
# remove leading '#' and fill in your wifi details
Hi guys, I’m getting the same issue for esphome converted aoycocr/athom plugs. wondering what board it should be for these plugs? don’t wanna try d1_mini and break it. I don’t think they have d1_mini TBH.
My apologizes. Yes you are right, sorry about that. I will take care of this on future posts.
I have now used your updated Github YAML code and it fixed my issue, thank you.
Please remove the platform key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: ESP32
board: esp32dev
My config looks like in the picture, am i supposed to remove parts or replace parts with something else? Thanks