Hello @jkandasa,
Now I am trying to automatize the installation of MyController v2 from within a Bash script, where I want to preset the MySensors gateway.
I found your documentation at https://v2.mycontroller.org/docs/user-interface/resources/gateway-mysensors/ where you show also as an example a yaml file. Furthermore I found within the directory mc_home/data/storage/memory_db/yaml/
a file called gateway__1.yaml
with the settings of the gateway that I inserted via the web UI.
The content of the file is like the following:
- id: MySensors
description: MySensors Serial 2MQTT Bridge
enabled: true
reconnectdelay: 30s
queuefailedmessage: false
provider:
enableInternalMessageAck: true
protocol:
broker: tcp://127.0.0.1:1883
publish: mysensors-in
qos: 0
subscribe: mysensors-out/#
transmitPreDelay: 10ms
type: mqtt
retryCount: 3
timeout: 500ms
type: mysensors_v2
messagelogger:
type: none
labels:
location: server
others: {}
state:
status: up
message: Started successfully
since: 2021-08-06T17:40:06.560894835+02:00
modifiedon: 0001-01-01T00:00:00Z
lasttransaction: 0001-01-01T00:00:00Z
Can I simply assume that if I drop such a yaml file in that folder that a new installation of MyController v2 will simply pick it up or do I need to setup also something else?
Also most likely in the preconfigured yaml file I can simply drop the part of state:
, modifiedon:
and lasttransaction:
, right?
Also can be the name of the file anything or do I need to follow some convention?
Thanks