2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

50_HP1000: assign FHEM Builtin Reading Types

git-svn-id: https://svn.fhem.de/fhem/trunk@12573 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2016-11-14 05:13:04 +00:00
parent 12b5f0c83f
commit 34a5f5adbc

View File

@ -70,10 +70,10 @@ sub HP1000_Initialize($) {
$hash->{parseParams} = 1; $hash->{parseParams} = 1;
$hash->{AttrList} = $hash->{AttrList} =
"wu_push:1,0 wu_id wu_password wu_realtime:1,0 extSrvPush_Url stateReadingsLang:en,de,at,ch,nl,fr,pl stateReadings stateReadingsFormat:0,1,2 " "wu_push:1,0 wu_id wu_password wu_realtime:1,0 extSrvPush_Url stateReadingsLang:en,de,at,ch,nl,fr,pl stateReadings stateReadingsFormat:0,1 "
. $readingFnAttributes; . $readingFnAttributes;
$hash->{readingsFormat} = { $hash->{readingsTypes} = {
'activity' => { 'activity' => {
ref => 'oknok', ref => 'oknok',
scope => [ 'dead', 'alive' ], scope => [ 'dead', 'alive' ],
@ -83,17 +83,21 @@ sub HP1000_Initialize($) {
$hash->{readingsDesc} = { $hash->{readingsDesc} = {
'Activity' => { rtype => 'activity', }, 'Activity' => { rtype => 'activity', },
'UV' => { rtype => 'uvi', }, 'UV' => { rtype => 'uvi', },
'UVcondition' => { rtype => 'condition_uvi', },
'UVR' => { rtype => 'uwpscm', }, 'UVR' => { rtype => 'uwpscm', },
'daylight' => { rtype => 'bool', },
'dewpoint' => { rtype => 'c', }, 'dewpoint' => { rtype => 'c', },
'dewpoint_f' => { rtype => 'f', }, 'dewpoint_f' => { rtype => 'f', },
'humidity' => { rtype => 'pct', formula_symbol => 'H' }, 'humidity' => { rtype => 'pct', formula_symbol => 'H' },
'humidityAbs' => { rtype => 'c', }, 'humidityAbs' => { rtype => 'c', },
'humidityAbs_f' => { rtype => 'f', }, 'humidityAbs_f' => { rtype => 'f', },
'humidityCondition' => { rtype => 'condition_hum', },
'indoorDewpoint' => { rtype => 'c', }, 'indoorDewpoint' => { rtype => 'c', },
'indoorDewpoint_f' => { rtype => 'f', }, 'indoorDewpoint_f' => { rtype => 'f', },
'indoorHumidity' => { rtype => 'pct', }, 'indoorHumidity' => { rtype => 'pct', },
'indoorHumidityAbs' => { rtype => 'c', }, 'indoorHumidityAbs' => { rtype => 'c', },
'indoorHumidityAbs_f' => { rtype => 'f', }, 'indoorHumidityAbs_f' => { rtype => 'f', },
'indoorHumidityCondition' => { rtype => 'condition_hum', },
'indoorTemperature' => { rtype => 'c', }, 'indoorTemperature' => { rtype => 'c', },
'indoorTemperature_f' => { rtype => 'f', }, 'indoorTemperature_f' => { rtype => 'f', },
'israining' => { rtype => 'bool', }, 'israining' => { rtype => 'bool', },