Hi, thanks for response.
I cannot publish to mqtt received from RFlink command.
I rise Issue (
https://github.com/letscontrolit/ESPEasy/issues/514) but Contributors says this is not a bug.
rflink message is
Code: Select all
20;9C;RTS;ID=3f4d5d;SWITCH=01;CMD=ON;
I try all combinations, but no luck:
Code: Select all
on !rflink do
publish /test1,ok
publish /test1a,[rflink]
publish /test1b,[!rflink]
publish /test1c,[rflink#]
publish /test1d,[!rflink#]
endon
on [!rflink] do
publish /test2,ok
publish /test2a,[rflink]
publish /test2b,[!rflink]
publish /test2c,[rflink#]
publish /test2d,[!rflink#]
endon
on !rflink# do
publish /test3,ok
publish /test3a,[rflink]
publish /test3b,[!rflink]
publish /test3c,[rflink#]
publish /test3d,[!rflink#]
endon
on [!rflink#] do
publish /test4,ok
publish /test4a,[rflink]
publish /test4b,[!rflink]
publish /test4c,[rflink#]
publish /test4d,[!rflink#]
endon
Result:
Code: Select all
/test1 ok
/test1a (null)
/test1b (null)
/test1c 0.00
/test1d (null)
/test2 ok
/test2a (null)
/test2b (null)
/test2c 0.00
/test2d (null)
/test3 ok
/test3a (null)
/test3b (null)
/test3c 0.00
/test3d (null)
/test4 ok
/test4a (null)
/test4b (null)
/test4c 0.00
/test4d (null)
Please show me right way to do it.