From 18599cdd082c2ea301c8f78fd05f202024fccbe1 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 16 Apr 2016 19:40:07 +0000 Subject: [PATCH] 10_ZWave.pm: emit timePrametersGet event (Forum #36102) git-svn-id: https://svn.fhem.de/fhem/trunk@11257 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index 13ced9ddd..4adbf13d5 100755 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -438,7 +438,8 @@ my %zwave_class = ( TIME_PARAMETERS => { id => '8b', set => { timeParameters => 'ZWave_timeParametersSet($hash, "%s")'}, get => { timeParameters => "02"}, - parse => { "..8b03(.*)" => 'ZWave_timeParametersReport($hash, $1)' } }, + parse => { "..8b02" => 'timeParametersGet', + "..8b03(.*)" => 'ZWave_timeParametersReport($hash, $1)' } }, GEOGRAPHIC_LOCATION => { id => '8c' }, COMPOSITE => { id => '8d' }, MULTI_CHANNEL_ASSOCIATION=> { id => '8e', # aka MULTI_INSTANCE_ASSOCIATION @@ -4563,15 +4564,19 @@ s2Hex($) format MM-DD_HH:00.
Note: Sign for both offsets must be specified!
Note: Minutes for DST_START and DST_END must be specified as "00"! - +

Class TIME_PARAMETERS, V1 +
  • timeParametersGet
    + The device request time parameters. Right now the user should define a + notify with a "set timeParameters" command. +
  • timeParameters DATE TIME
    Set the time (UTC) to the internal clock of the device.
    DATE: Date in format YYYY-MM-DD.
    TIME: Time (UTC) in the format hh:mm:ss.
    Note: Time zone offset to UTC must be set with command class TIME. -
  • +

    Class USER_CODE
  • userCode id status code
    @@ -5323,8 +5328,9 @@ s2Hex($)

    Class TIME, V2
  • time:$time RTC: [failed|working]
  • date:$date
  • -
  • timeOffset: UTC-Offset: $utco DST-Offset(minutes): $dsto DST-Start: $start DST-End: $end
  • - +
  • timeOffset: UTC-Offset: $utco DST-Offset(minutes): $dsto DST-Start: + $start DST-End: $end
  • +

    Class TIME_PARAMETERS, V1
  • timeParameters: date: $date time(UTC): $time