Page 1 of 1

serial commands in rules?

Posted: 08 Aug 2017, 08:21
by iot.bastler
I woud appreciate some help for a simple school bell project.

The Idea: Running a Catalex serial controlled mp3-Board http://ebay.eu/2uBjGxn on an ESP8266.
The mp3-files are put on a sd-card, and during the day the school bell sound or a chime or whatever is played at certain times, using the Rules-Section of ESP Easy (which gets its time via ntp)

So far I managed to play the sounds remotely in a terminal session using the "Serial Server" PlugIn on the esp.
It's a little bit tricky to get the hex-commands like "0x7E 0xFF 0x06 0x22 0x00 0x1E 0x02 0xEF" through, but it works very good and without any lag.

But I have no clue how to put serial commands in a rules syntax - and if it is possible at all. At least I didn't find any documentation on that.
Somewhere I ran across a command called SerialSend - but I don't know if it works for the serialserver plugin.


Some questions:
1. I assumed, that for this purpose (simple actuator) there's no new plugin-development needed. Am I wrong?
2. How can I use RULES to send a hex-command to the mp3-board on the RX/TX-pins of the esp?
3. Do I need the SerialServer plugin at all for this purpose? Probably only if I wanted to ring the school bell (also) remotely...

Sorry, if some questions are too dumb, but I already spent some hours here and did't get the point.

thx, Markus

Re: serial commands in rules?

Posted: 08 Aug 2017, 08:34
by grovkillen

Re: serial commands in rules?

Posted: 08 Aug 2017, 09:02
by iot.bastler
Stupid me. :roll:
thx for the link!