raetha / wyzesense2mqtt

Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
MIT License
79 stars 22 forks source link

Automatically copy sample config.yaml and logging.yaml if they don't exist #28

Closed raetha closed 4 years ago

raetha commented 4 years ago

Based on comments in issue #13, it was pointed out that if config files don't exist, Docker will fail to start, and in some cases it more manual work to create the initial config files. Particularly logging.yaml which for most people needs no modification.

The main script should instead copy the default sample files into the config folder if existing entries do not exist. The config.yaml file still needs modification with MQTT credentials, but will at least show up in the Docker volume to be edited.