From 34f3545e2f5239debdbc52b14116bb5b20378169 Mon Sep 17 00:00:00 2001 From: fhemzap Date: Mon, 25 Jan 2016 18:26:14 +0000 Subject: [PATCH] HMCCUDEV: Added support for FHEM widgets git-svn-id: https://svn.fhem.de/fhem/trunk@10623 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/HMCCU/88_HMCCUDEV.pm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/HMCCU/88_HMCCUDEV.pm b/fhem/contrib/HMCCU/88_HMCCUDEV.pm index ebe8be502..760be8cbc 100644 --- a/fhem/contrib/HMCCU/88_HMCCUDEV.pm +++ b/fhem/contrib/HMCCU/88_HMCCUDEV.pm @@ -4,14 +4,15 @@ # # $Id:$ # -# Version 2.5 +# Version 2.6 # -# (c) 2015 zap (zap01 t-online de) +# (c) 2016 zap (zap01 t-online de) # ################################################################ # # define HMCCUDEV [readonly] # +# set control # set datapoint . # set devstate # set @@ -27,6 +28,7 @@ # attr ccureadings { 0 | 1 } # attr ccureadingformat { address | name } # attr ccureadingfilter +# attr controldatapoint . # attr statechannel # attr statedatapoint # attr statevals :[,...] @@ -551,9 +553,17 @@ sub HMCCUDEV_SetError ($$) Only datapoints matching specified expression are stored as readings.
-
  • ccureadingformat <address | name> -
    - Set format of readings. Default is 'name'. +
  • ccureadingformat <address | name>
    + Set format of readings. Default is 'name'. +

  • +
  • controldatapoint <channel-number.datapoint>
    + Set datapoint for device control. Can be use to realize user defined control elements for + setting control datapoint. For example if datapoint of thermostat control is + 2.SET_TEMPERATURE one can define a slider for setting the destination temperature with + following attributes:

    + attr mydev controldatapoint 2.SET_TEMPERATURE + attr mydev webCmd control + attr mydev widgetOverride control:slider,10,1,25

  • statechannel <channel-number>