jan80trs
(Jan)
November 23, 2025, 4:03pm
1
I’m in an iot-course, and we’ve started from basics using ESP32 and now I want to configure my ESP32, using the .yaml file. Someone in class showed me he got it working for several differend ssids’ in a single file. But I can’t make it work.
Executing “esphome run ~/config/huiswerk.yaml” always gives me errors. The last one was ‘expected a dictionary’
Source snippet:
The error msg. shows these lines with: ‘expected a dictionary’.
I suppose it’s a formatting problem, but I can’t figure it out. I’ve read the manual @ YAML Configuration in ESPHome - ESPHome - Smart Home Made Simple but that doen’t make it clear, either. I’m stuck.
jeffcrum
(Jeff Crum)
November 23, 2025, 5:16pm
2
See here.
It says dat you shouldn’t use the dash - in front of the password. Only in front of the ssid
You are missing networks:
francisp
(Francis)
November 23, 2025, 5:30pm
3
wifi:
networks:
- ssid: "SNOW"
password: "verystrongpassword"
- ssid: "dd-wrt"
password: "verystrongpassword"
- ssid: "SNOW_EXT"
password: "verystrongpassword"
# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "Bluetooth Fallback Hotspot"
password: "verystrongpassword"
1 Like
jan80trs
(Jan)
November 23, 2025, 10:15pm
4
Oh my …
Thank you, I’ll try that tomorrow.
jeffcrum
(Jeff Crum)
November 23, 2025, 10:17pm
5
Francis gave more info. Look at that too.
ap should be even with networks without a dash.
jan80trs
(Jan)
November 26, 2025, 8:42pm
6
Thanks, it worked.
On to other problems