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