moin Udo1Toni,
ein gesundes neues Jahr wünsche ich noch in die Runde.
Leider funktioniert det Tip mit dem Group Topic an die Tasmota-Geräte nicht.
Da ich sowohl Power als auch Dimmer in einer Rule ansprechen will habe ich es wie folgt gelöst...
Code: Alles auswählen
rule "Tasmota-Status"
when
//Time cron "*/30 * * * * ?" or
Time cron "0 0 0 * * ?" or
Item SystemStart_15Min changed to ON //schalter 15Min nach Systemstart auf ON
then
//get stats of tasmota devices"
val mqttActions01 = getActions("mqtt","mqtt:broker:RzHomeControl_MQTT_Broker")
mqttActions01.publishMQTT("cmnd/tasmotas/POWER",null, false)
val mqttActions02 = getActions("mqtt","mqtt:broker:RzHomeControl_MQTT_Broker")
mqttActions02.publishMQTT("cmnd/tasmotas/FanSpeed",null, false)
val mqttActions03 = getActions("mqtt","mqtt:broker:RzHomeControl_MQTT_Broker")
mqttActions03.publishMQTT("cmnd/tasmotas/Dimmer",null, false)
end
Code: Alles auswählen
val mqttActions01 = getActions("mqtt","mqtt:broker:RzHomeControl_MQTT_Broker")
val mqttActions = getActions("mqtt","mqtt:broker:myBroker")
Code: Alles auswählen
mqttActions01.publishMQTT("cmnd/tasmotas/POWER",null, false)
mqttActions.publishMQTT("mytopic","myvalue", true)

Ist da noch ein Fehler drin?
???Was heißt das genau?
Vielleicht wird die Rule auch zu früh ausgeführt, es dauert immer noch sehr lange bis das MQTT Binding läuft und alle Geräte da sind.
Kann die Rule natürlich auch auslösen wenn ich von einem der Tasmota-Geräte eine Temperatur gemeldet bekomme...

Von Visual Studio bekomme ich auch eine Fehlermeldung (Siehe Bild im Anhang)
Muss das NULL evtl. in Anführungsstriche?
Code: Alles auswählen
"cmnd/tasmotas/POWER","null", false
Florian