2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

98_powerMap: fix HUE templates

git-svn-id: https://svn.fhem.de/fhem/trunk@13212 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-01-23 17:47:53 +00:00
parent e657340bbd
commit b96d35efbe

View File

@ -217,10 +217,13 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
100 => 8.5,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
100 => 8.5,
}, },
}, },
}, },
@ -236,10 +239,13 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
100 => 10,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
100 => 10,
}, },
}, },
}, },
@ -249,10 +255,13 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
100 => 8.5,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
100 => 10,
}, },
}, },
}, },
@ -298,10 +307,13 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
100 => 12,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
100 => 12,
}, },
}, },
}, },
@ -311,10 +323,13 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
100 => 20.5,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
100 => 20.5,
}, },
}, },
}, },
@ -324,19 +339,22 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
10 => 1.2,
20 => 1.7,
30 => 1.9,
40 => 2.3,
50 => 2.7,
60 => 3.4,
70 => 4.7,
80 => 5.9,
90 => 7.5,
100 => 9.2,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
10 => 1.2,
20 => 1.7,
30 => 1.9,
40 => 2.3,
50 => 2.7,
60 => 3.4,
70 => 4.7,
80 => 5.9,
90 => 7.5,
100 => 9.2,
}, },
}, },
}, },
@ -346,19 +364,22 @@ my %powerMap_tmpl = (
rname_E => 'energy', rname_E => 'energy',
rname_P => 'consumption', rname_P => 'consumption',
map => { map => {
pct => {
0 => 0.4,
10 => 1.2,
20 => 1.7,
30 => 1.9,
40 => 2.3,
50 => 2.7,
60 => 3.4,
70 => 4.7,
80 => 5.9,
90 => 7.5,
100 => 9.2,
},
state => { state => {
unreachable => 0, unreachable => 0,
0 => 0.4, '*' => 'pct',
10 => 1.2,
20 => 1.7,
30 => 1.9,
40 => 2.3,
50 => 2.7,
60 => 3.4,
70 => 4.7,
80 => 5.9,
90 => 7.5,
100 => 9.2,
}, },
}, },
}, },
@ -1707,8 +1728,7 @@ sub powerMap_update($;$) {
Example for HUE white light bulb: Example for HUE white light bulb:
<ul> <ul>
<code><pre> <code><pre>
'state' =&gt; { 'pct' =&gt; {
'unreachable' =&gt; 0,
'0' =&gt; 0.4, '0' =&gt; 0.4,
'10' =&gt; 1.2, '10' =&gt; 1.2,
'20' =&gt; 1.7, '20' =&gt; 1.7,
@ -1721,6 +1741,10 @@ sub powerMap_update($;$) {
'90' =&gt; 7.5, '90' =&gt; 7.5,
'100' =&gt; 9.2, '100' =&gt; 9.2,
}, },
'state' =&gt; {
'unreachable' =&gt; 0,
'*' =&gt; 'pct',
},
</pre></code><br> </pre></code><br>
</ul> </ul>
</li> </li>
@ -1880,8 +1904,7 @@ sub powerMap_update($;$) {
Beispiel f&uuml;r eine HUE white Gl&uuml;hlampe: Beispiel f&uuml;r eine HUE white Gl&uuml;hlampe:
<ul> <ul>
<code><pre> <code><pre>
'state' =&gt; { 'pct' =&gt; {
'unreachable' =&gt; 0,
'0' =&gt; 0.4, '0' =&gt; 0.4,
'10' =&gt; 1.2, '10' =&gt; 1.2,
'20' =&gt; 1.7, '20' =&gt; 1.7,
@ -1894,6 +1917,10 @@ sub powerMap_update($;$) {
'90' =&gt; 7.5, '90' =&gt; 7.5,
'100' =&gt; 9.2, '100' =&gt; 9.2,
}, },
'state' =&gt; {
'unreachable' =&gt; 0,
'*' =&gt; 'pct',
},
</pre></code><br> </pre></code><br>
</ul> </ul>
</li> </li>