Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish command in rules not work as expected with Serial Server (Ser2Net) plugin #514

Closed
agsochi opened this issue Sep 22, 2017 · 7 comments

Comments

@agsochi
Copy link

agsochi commented Sep 22, 2017

Hi!
I use Serial Server (Ser2Net) plugin.
esp
Serial Server works - i see messages from serial port:

1389045 : EVENT: !RFLink#
1389052 : ACT : publish /test,
1389383 : EVENT: !RFLink#eeloq;ID=9ac2;SWITCH=01;CMD=ON;BAT=OK;
1389389 : ACT : publish /test,
1403244 : EVENT: !RFLink#Keeloq;ID=9ac2;SWITCH=02;CMD=ON;BAT=OK;
1403250 : ACT : publish /test,
1403909 : EVENT: !RFLink#
1403915 : ACT : publish /test,
1404207 : EVENT: !RFLink#eeloq;ID=9ac2;SWITCH=08;CMD=ON;BAT=OK;
1404213 : ACT : publish /test,

My rules (if i use 'on rflink do' - rule do not work):

on [rflink] do
publish /test,[rflink]
endon

In MQTT i see only:

/test (null)
/test (null)
/test (null)
/test (null)

If i use 'publish /test,test' - i see /test test - publish command works.
Issue - no rflink value published.

Sorry for question, i didn't know where i can get help - How to send command back to 'Serial Server' from 'Rules'?

@papperone
Copy link
Contributor

first of all this is a message more for the forum than for the GITHub as there's yet no evidence this is a bug, then I believe you are not using the correct syntax as square bracket shouldn't be used in the ON command as far as I remember....

@agsochi
Copy link
Author

agsochi commented Sep 22, 2017

I try all cases with square bracket and without it. Without square bracket - no event at all.

@Grovkillen
Copy link
Member

Grovkillen commented Sep 22, 2017

Shouldn't the rule be:

on rflink# do
publish /test,[rflink#]
endon

@agsochi
Copy link
Author

agsochi commented Sep 22, 2017

on rflink# do
publish /test,[rflink#]
endon

No, this rule do not work too.

@papperone
Copy link
Contributor

I think your event name includes the esclamation mark "!" as in all my events that's not there (maybe a "feature" of this plugin); as well some events looks like weird ending with a pound "#" without the second argument... I am convinced your issue is specific to the events generated by this plugin, have you tried to open this thread in the forum?
GitHub shoudl be only for known bugs in the code, while this looks like more help to make it work!

@psy0rz
Copy link
Member

psy0rz commented Sep 23, 2017

please re-open if someone is sure this is a bug. thanks :)

@psy0rz psy0rz closed this as completed Sep 23, 2017
@agsochi
Copy link
Author

agsochi commented Sep 25, 2017

I try forum - but still no info how to pulish to mqtt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants