i got a problem or maybe i make a mistake. I want to use the ser2net bridge to read a value from my arduino.
The wiring is ok and i can see the incoming values.
my problem is, that dthe %eventvalue% do not substitute and i got the full eventname+ eventvalue .
incoming Event under logs:
Code: Select all
852660: EVENT: !Serial#Dist=66
852667: ACT : Publish test,!Serial#Dist=66
852675: Command: publish
852711: EVENT: !Serial#Dist=64
852718: ACT : Publish test,!Serial#Dist=64
852727: Command: publish
852877: EVENT: !Serial#Dist=72
852884: ACT : Publish test,!Serial#Dist=72
852893: Command: publish
852936: EVENT: !Serial#Dist=73
852944: ACT : Publish test,!Serial#Dist=73
852953: Command: publish
852998: EVENT: !Serial#Dist=73
853005: ACT : Publish test,!Serial#Dist=73
853013: Command: publish
853109: EVENT: !Serial#Dist=65
853116: ACT : Publish test,!Serial#Dist=65
853125: Command: publish
853278: EVENT: !Serial#Dist=65
853285: ACT : Publish test,!Serial#Dist=65
853294: Command: publish
853452: EVENT: !Serial#Dist=65
853459: ACT : Publish test,!Serial#Dist=65
853468: Command: publish
853504: EVENT: !Serial#Dist=73
853513: ACT : Publish test,!Serial#Dist=73
853522: Command: publish
853671: EVENT: !Serial#Dist=73
853678: ACT : Publish test,!Serial#Dist=73
853687: Command: publish
Rules:
Code: Select all
On !Serial#* do
Publish test,%eventvalue%
endon
in mqtt i receive :
Code: Select all
test/
!Serial#Dist=108
is there a problem with my simple rule