From cc91100a97beec53736d62dac746e6c0eec69a23 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 2 Aug 2019 09:34:16 +0000 Subject: [PATCH] 10_ZWAVE.pm: add class SOUND_SWITCH (Forum #102579) git-svn-id: https://svn.fhem.de/fhem/trunk@19934 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index bdc2c0015..02d3c9ce2 100644 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -474,6 +474,18 @@ my %zwave_class = ( location => '05' }, parse => { '..770300(.*)' => '"name:".pack("H*", $1)', '..770600(.*)' => '"location:".pack("H*", $1)' } }, + SOUND_SWITCH => { id => '79', + set => { toneConfiguration => "05%02x%02x", + tonePlay => "08%02x", + tonePlayDefault => "08FF" }, + toneStop => "0800", + get => { toneNumbers => "01", + tonePlay => "09", + toneConfiguration => "06"}, + parse => { "037902(..)" => '"toneNumbers:".hex($1)', + "047907(..)(..)" => '"toneConfiguration:Volume ".hex($1).'. + '" Default ".hex($2)', + "03790a(..)" => '"tonePlay:".hex($1)' } }, FIRMWARE_UPDATE_MD => { id => '7a', get => { fwMetaData => 'ZWave_firmware($hash, "")' }, set => { fwUpdate => 'ZWave_firmware($hash, "%s")'}, @@ -5982,6 +5994,18 @@ ZWave_firmwareUpdateParse($$$)
  • location LOCATION
    Store LOCATION in the EEPROM. Note: only ASCII is supported.
  • +

    Class SOUND_SWITCH +
  • toneConfiguration VOLUME DEFAULTNR
    + Configure the volume and the default tone. Volume 0 is off, 1..100 is + interpreted as 1% to 100%, and 255 restores last volume, if the current is + 0. If DEFAULTNR is 0, set only the volume.
  • +
  • tonePlay TONENUMBER
    + Play tone Number TONENUMBER.
  • +
  • tonePlayDefault
    + Play the default tone.
  • +
  • toneStop
    + Stop playing.
  • +

    Class POWERLEVEL
  • Class is only used in an installation or test situation
  • powerlevel level timeout/s
    @@ -6545,6 +6569,14 @@ ZWave_firmwareUpdateParse($$$)
  • location
    Get the location from the EEPROM. Note: only ASCII is supported.
  • +

    Class SOUND_SWITCH +
  • toneConfiguration
    + Request the current configuration.
  • +
  • toneNumbers
    + Request the number of tones supported.
  • +
  • tonePlay
    + Request the tone number being played.
  • +

    Class POWERLEVEL
  • powerlevel
    Get the current powerlevel and remaining time in this level.
  • @@ -7038,6 +7070,11 @@ ZWave_firmwareUpdateParse($$$)
  • name:NAME
  • location:LOCATION
  • +

    Class SOUND_SWITCH +
  • toneConfiguration:Volume VOLUME Default DEFAULT
  • +
  • toneNumbers:NUMBER
  • +
  • tonePlay:NUMBER
  • +

    Class POWERLEVEL
  • powerlvl:current x remain y
    NOTE: "current 0 remain 0" means normal mode without timeout