Closed jptrsn closed 5 years ago
That is not possible. When ESPHome reads the config it directly replaces all content with the <<:
. The result is that it cannot modify anything - and I'm 100% certain about that. If you want to check, you can use the validate script to see how esphome interprets the config.
What is likely the issue here is that you have mqtt and api enabled. But that will make the ESP reboot every 5min because no client connected over the api.
Please see the warning in the mqtt docs
I'm using the time component with the API. Is there an MQTT equivalent?
Decided to attempt to use only the native api.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
HassIO Add On ESP (ESP32/ESP8266, Board/Sonoff):
Wemos D1 Mini R2 Affected component:
WiFi connectivity
Description of problem: I know this is a known/understood bug, but I've stumbled across something odd which I wanted to report. I'm using github to host my configuration yaml file in a gist, so that I get version tracking and easy sharing. I've cloned this gist into the
config/esphome/gist
directory, and it comes in asconfig/esphome/gist/airconditioner1.yaml
. I've also got asecrets.yaml
file in there.In the
config/esphome
directory, I've got anotherairconditioner1.yaml
file (as this is what esphome will ingest).If I copy/paste the contents from the gist file into the esphome file, the code runs as expected. However, I thought I was being pretty clever and using a single line in
config/esphome/airconditioner1.yaml
which was this:Using this method, the wemos suffers tcp disconnects. If I just replace the contents of the file with those of the gist, I get no disconnections.
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information and things you've tried: