Verschiedene Shelly-Aktoren in bffh.dhall einbetten
Beispiel-Config von Nils RoßmannR. (vom FabLab Karlsruhe e.V.)
Nils hat einendas Generischenfolgende AktorKonfigurationsbeispiel erstellt, der nochdas größtenteils kompatibel zu demzum Shelly Aktor ist. Wenn manin folgender Definition kein Topic angibt,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=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" },
]
: List { machine : Text, actor : Text },