mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-26 10:34:52 +00:00
34_ESPEasy.pm: support ESPEasy commands tone/rtttl
git-svn-id: https://svn.fhem.de/fhem/trunk@14118 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
92dba1545a
commit
190a7c7c86
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 34_ESPEasy: added ESPEasy commands: tone and rtttl
|
||||
- bugfix: 88_HMCCU: fixed config commands
|
||||
- feature: 30_pilight_contact: add battery reading if information is available
|
||||
- update: 88_HMCCU: Homematic firmware download, advanced scripting
|
||||
|
@ -36,7 +36,7 @@ use Color;
|
||||
# ------------------------------------------------------------------------------
|
||||
# global/default values
|
||||
# ------------------------------------------------------------------------------
|
||||
my $module_version = 1.04; # Version of this module
|
||||
my $module_version = 1.05; # Version of this module
|
||||
my $minEEBuild = 128; # informational
|
||||
my $minJsonVersion = 1.02; # checked in received data
|
||||
|
||||
@ -82,6 +82,8 @@ my %ESPEasy_setCmds = (
|
||||
"help" => "1",
|
||||
"lights" => "1",
|
||||
"dots" => "1",
|
||||
"tone" => "3",
|
||||
"rtttl" => "1"
|
||||
);
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@ -116,6 +118,8 @@ my %ESPEasy_setCmdsUsage = (
|
||||
"help" => "help <".join("|", sort keys %ESPEasy_setCmds).">",
|
||||
"lights" => "light <rgb|ct|pct|on|off|toggle> [color] [fading time] [pct]",
|
||||
"dots" => "dots <params>",
|
||||
"tone" => "tone <pin> <freq> <duration>",
|
||||
"rtttl" => "rtttl <RTTTL>",
|
||||
|
||||
#Lights
|
||||
"rgb" => "rgb <rrggbb> [fading time]",
|
||||
@ -2837,6 +2841,20 @@ sub ESPEasy_removeGit($)
|
||||
eg. <code>irsend NEC 7E81542B 32</code>
|
||||
</li><br>
|
||||
|
||||
<li><a name="">tone</a><br>
|
||||
Play a tone on a pin via a speaker or piezo element (ESPEasy >=
|
||||
2.0.0-dev6)
|
||||
<br>
|
||||
required arguments: <pin> <freq> <duration>
|
||||
</li><br>
|
||||
|
||||
<li><a name="">rtttl</a><br>
|
||||
Play melodies via <a target="_NEW" href="https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification">RTTTL</a>
|
||||
(ESPEasy >= 2.0.0-dev6)
|
||||
<br>
|
||||
required arguments: <pin> <freq> <duration>
|
||||
</li><br>
|
||||
|
||||
<li><a name="">status</a><br>
|
||||
Request esp device status (eg. gpio)<br>
|
||||
required values: <code><device> <pin></code><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user