Page 1 of 1

MQTT import rule trigger

Posted: 28 Nov 2022, 18:08
by JY21
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 1227 times
Mqtt2.jpg
Mqtt2.jpg (64.87 KiB) Viewed 1227 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

Re: MQTT import rule trigger

Posted: 28 Nov 2022, 19:09
by Ath
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'.

Re: MQTT import rule trigger

Posted: 29 Nov 2022, 07:46
by JY21
Great, it works :D

Thank you very much !