Gosund Plug with Tasmota13.1.0

  • hello I would like my Gosund plug with Tasmota to send the actual now Current value to mqtt every 10 seconds.

    Code
    TelePeriod 10
    Code
    Rule1 on System#Boot do RuleTimer1 10 endon on Rules#Timer=1 do Publish stat/%topic%/SENSOR {"Current":%current%} endon
    Code
    Rule1 1

    Unfortunately this does not work. Can anyone here help me? Unfortunately this does not work. Can anyone here help me?
    I don't want to import the data to nodered first, then reformat it there and then send it back to mqtt.

  • Rule1
    on System#Boot do RuleTimer1 10 endon
    on Rules#Timer=1 do backlog RuleTimer1 10; Publish stat/%topic%/SENSOR {"Current":%current%} endon

    or

    Rule1
    ON mqtt#connected DO cmnd/tasmota/Status 0 ENDON


    and that's normal Gosund plug

    teleperiod 10

    Rule1
    on tele-ENERGY#Current do Publish stat/tasmota/SENSOR {"Current":%value%} endon


    Rule1
    on tele-AM2301#Temperature do Publish tele/%topic%/SENSOR {"Temperature":%value%} endon

    5 Mal editiert, zuletzt von karoCB (23. November 2024 um 21:10)