MQTT import rule trigger

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JY21
New user
Posts: 2
Joined: 28 Nov 2022, 16:45

MQTT import rule trigger

#1 Post by JY21 » 28 Nov 2022, 18:08

Hi,

I'm trying to do a simple rule to do something when MQTT import is updated, but it doesn't work ...


Mqtt.jpg
Mqtt.jpg (116.16 KiB) Viewed 1007 times
Mqtt2.jpg
Mqtt2.jpg (64.87 KiB) Viewed 1007 times
I've tried with : ( My taskValueSet works fine if I put it on the tools command line )

on Linky#power do

TaskValueSet,5,1,2

Endon


Or


on Linky#Conso_VA do

TaskValueSet,5,1,2

Endon

without success

I can see this in the log file : IMPT : [Linky#Conso_VA] : 1070.00

Thanks for your help

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: MQTT import rule trigger

#2 Post by Ath » 28 Nov 2022, 19:09

Your second event, on linky#conso_va do, should work once you enable the 'Generate events for accepted topics' checkbox, assuming your MQTT topic is 'power'.
/Ton (PayPal.me)

JY21
New user
Posts: 2
Joined: 28 Nov 2022, 16:45

Re: MQTT import rule trigger

#3 Post by JY21 » 29 Nov 2022, 07:46

Great, it works :D

Thank you very much !

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 41 guests