Verschiedene Shelly-Aktoren in bffh.dhall einbetten
Nils R. vom FabLab Karlsruhe e.V. hat das folgende Konfigurationsbeispiel für einen MqttSwitch Aktor erstellt, das größtenteils kompatibel zum Shelly Aktor ist. Wenn in folgender Definition kein Topic angegeben wird, dann erzeugt es ein Shelly Gen 1 kompatibles Topic. Es wurde erfolgreich getestet mit
- Shelly Plug S
- Shelly plus 1PM (Gen2 API)
- Gosund Plug mit Tasmota Firmware
- Wahrscheinlich auch kompatibel mit Shelly mit 2 Relays
{ actors =
{ plug004 =
{ module = "MqttSwitch"
, params = { topic = "cmnd/plug004/POWER", onMsg = "ON", offMsg = "OFF" }
}
, shellyplus1pm-XXXXXXXXXXXX =
{ module = "MqttSwitch"
, params =
{ topic = "shellyplus1pm-XXXXXXXXXXXX/rpc"
, onMsg =
"{\"id\": 1, \"src\": \"bffh\", \"method\": \"Switch.Set\", \"params\": {\"id\": 0, \"on\": true}"
, offMsg =
"{\"id\": 1, \"src\": \"bffh\", \"method\": \"Switch.Set\", \"params\": {\"id\": 0, \"on\": false}"
}
}
, shellyplug-s-XXXXXXXXXXXX = { module = "MqttSwitch", params = {=} }
}
, actor_connections =
[ { machine = "MachineA1", actor = "plug004" }
, { machine = "MachineA2", actor = "shellyplug-s-XXXXXXXXXXXX" }
, { machine = "MachineA3", actor = "shellyplus1pm-XXXXXXXXXXXX" }
]
}
Keine Kommentare