MQTT Item nach Systemstart = NULL -> publishMQTT
Verfasst: 17. Mär 2025 16:37
Hallo Zusammen,
ich habe noch ein kleines Problem.
Die Items der MQTT-Things sind nach dem Systemstart alle auf NULL.
Nach einer Frage im Forum (ich weiß nicht mehr wo ?!?) bekam ich folgende Hilfestellung:
Leider zeigt mit Visual Studio Code diese Zeilen immer als fehlerhaft an.
Ich kann diesbezüglich keine Infos im Netzt finden ... zumindest keine, die ich verstehe
Ich bekomme zum rot markierten Teil
mqttActions.publishMQTT("cmnd/...
immer folgende Info
Ambiguous feature call.
The extension methods
publishMQTT(ThingActions, String, String, Boolean) in MQTTActions and
publishMQTT(ThingActions, String, byte[], Boolean) in MQTTActions
both match.
Bin für jede Hilfe dankbar.
Gruß
Florian
ich habe noch ein kleines Problem.
Die Items der MQTT-Things sind nach dem Systemstart alle auf NULL.
Nach einer Frage im Forum (ich weiß nicht mehr wo ?!?) bekam ich folgende Hilfestellung:
Code: Alles auswählen
rule "Tasmota-Status"
when
//Time cron "*/30 * * * * ?" or
//Time cron "0 0 0 * * ?" or
Item SystemStart_5Min changed to ON
then
//get stats of tasmota devices"
val mqttActions = getActions("mqtt","mqtt:broker:RzHomeControl_MQTT_Broker")
mqttActions.publishMQTT("cmnd/tasmotas/POWER",null, false)
mqttActions.publishMQTT("cmnd/tasmotas/FanSpeed",null, false)
mqttActions.publishMQTT("cmnd/tasmotas/Dimmer",null, false)
end
Ich kann diesbezüglich keine Infos im Netzt finden ... zumindest keine, die ich verstehe

Ich bekomme zum rot markierten Teil
mqttActions.publishMQTT("cmnd/...
immer folgende Info
Ambiguous feature call.
The extension methods
publishMQTT(ThingActions, String, String, Boolean) in MQTTActions and
publishMQTT(ThingActions, String, byte[], Boolean) in MQTTActions
both match.
Bin für jede Hilfe dankbar.
Gruß
Florian