uruchomione mosquitto oraz skompilowaną supla-device;
próbuję uruchomienia wariantu z sd+mqtt:
Code: Select all
name: *
log_level: debug
security_level: 2
supla:
server: *
mail: *
mqtt:
host: 127.0.0.1
port: 1883
username: "*"
password: "*"
client_name: sl4d_client_001
channels:
- type: CustomRelay
name: CR_MQTT
state: state
set_state: state #ta linia
turn_on_payload: "ON"
turn_off_payload: "OFF"
source:
type: MQTT
state_topic: "*/state"
parser:
type: Json
refresh_time_ms: 1000
output:
type: MQTT
control_topic: "*/set"
payload:
type: Simple
Code: Select all
7636]: Using config file /etc/*.yaml
7636]: Linux MQTT Client create.
7636]: Get Linux MQTT client instance.
7636]: Mark topic */state to subscribe
7636]: Get Linux MQTT client instance.
7636]: Channel[0] config: adding CustomRelay
7636]: Config file YAML error: yaml-cpp: error at line 20, column 16: bad conversion
7636]: Loading channels failed. Exit
*.service: Main process exited, code=exited, status=1/FAILURE
*.service: Failed with result 'exit-code'.