mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
mqtt2.template: small fixes for hoymiles inverter
git-svn-id: https://svn.fhem.de/fhem/trunk@27525 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
37d03b9f9c
commit
abf30bd019
@ -5591,6 +5591,7 @@ attr DEVICE readingList INVERTERLONG_ID/available:.* available\
|
|||||||
INVERTERLONG_ID/ch0/Freq:.* Freq\
|
INVERTERLONG_ID/ch0/Freq:.* Freq\
|
||||||
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
||||||
INVERTERLONG_ID/ch0/ALARM_MES_ID:.* ALARM_MES_ID\
|
INVERTERLONG_ID/ch0/ALARM_MES_ID:.* ALARM_MES_ID\
|
||||||
|
INVERTERLONG_ID/ch0/LastAlarmCode:.* LastAlarmCode\
|
||||||
INVERTERLONG_ID/ch0/Efficiency:.* Efficiency\
|
INVERTERLONG_ID/ch0/Efficiency:.* Efficiency\
|
||||||
INVERTERLONG_ID/ch0/YieldDay:.* {}\
|
INVERTERLONG_ID/ch0/YieldDay:.* {}\
|
||||||
INVERTERLONG_ID/ch0/YieldTotal:.* {}\
|
INVERTERLONG_ID/ch0/YieldTotal:.* {}\
|
||||||
@ -5620,6 +5621,7 @@ attr DEVICE readingList \
|
|||||||
INVERTERLONG_ID/ch0/Freq:.* Freq\
|
INVERTERLONG_ID/ch0/Freq:.* Freq\
|
||||||
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
||||||
INVERTERLONG_ID/ch0/ALARM_MES_ID:.* ALARM_MES_ID\
|
INVERTERLONG_ID/ch0/ALARM_MES_ID:.* ALARM_MES_ID\
|
||||||
|
INVERTERLONG_ID/ch0/LastAlarmCode:.* LastAlarmCode\
|
||||||
INVERTERLONG_ID/ch0/Efficiency:.* Efficiency\
|
INVERTERLONG_ID/ch0/Efficiency:.* Efficiency\
|
||||||
INVERTERLONG_ID/ch0/YieldDay:.* YieldDay\
|
INVERTERLONG_ID/ch0/YieldDay:.* YieldDay\
|
||||||
INVERTERLONG_ID/ch0/YieldTotal:.* YieldTotal\
|
INVERTERLONG_ID/ch0/YieldTotal:.* YieldTotal\
|
||||||
@ -5656,6 +5658,7 @@ attr DEVICE readingList \
|
|||||||
INVERTERLONG_ID/ch0/Freq:.* Freq\
|
INVERTERLONG_ID/ch0/Freq:.* Freq\
|
||||||
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
||||||
INVERTERLONG_ID/ch0/ALARM_MES_ID:.* ALARM_MES_ID\
|
INVERTERLONG_ID/ch0/ALARM_MES_ID:.* ALARM_MES_ID\
|
||||||
|
INVERTERLONG_ID/ch0/LastAlarmCode:.* LastAlarmCode\
|
||||||
INVERTERLONG_ID/ch0/Efficiency:.* Efficiency\
|
INVERTERLONG_ID/ch0/Efficiency:.* Efficiency\
|
||||||
INVERTERLONG_ID/ch0/YieldDay:.* YieldDay\
|
INVERTERLONG_ID/ch0/YieldDay:.* YieldDay\
|
||||||
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
INVERTERLONG_ID/ch0/Temp:.* temperature\
|
||||||
@ -5698,7 +5701,7 @@ attr DEVICE setList \
|
|||||||
limit_pct:slider,2,1,100 BASE_ID/ctrl/limit/INVERTER_NR $EVTPART1
|
limit_pct:slider,2,1,100 BASE_ID/ctrl/limit/INVERTER_NR $EVTPART1
|
||||||
attr DEVICE setStateList on off
|
attr DEVICE setStateList on off
|
||||||
attr DEVICE model hoymiles_microinverter_inverter
|
attr DEVICE model hoymiles_microinverter_inverter
|
||||||
setreading DEVICE attrTemplateVersion 20230502
|
setreading DEVICE attrTemplateVersion 20230507
|
||||||
|
|
||||||
# contributed by tpm88, https://forum.fhem.de/index.php/topic,94495.msg1251265.html#msg1251265
|
# contributed by tpm88, https://forum.fhem.de/index.php/topic,94495.msg1251265.html#msg1251265
|
||||||
name:hoymiles_opendtu_hub_bridge
|
name:hoymiles_opendtu_hub_bridge
|
||||||
|
@ -24,6 +24,7 @@ BEGIN {
|
|||||||
ReadingsNum
|
ReadingsNum
|
||||||
ReadingsAge
|
ReadingsAge
|
||||||
defs
|
defs
|
||||||
|
isday
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -48,6 +49,7 @@ sub devStateIcon {
|
|||||||
my $ret = ReadingsNum($devname,'available',0);
|
my $ret = ReadingsNum($devname,'available',0);
|
||||||
$ret = $ret > 1 ? '10px-kreis-gruen' : isday() ? '10px-kreis-rot' :'10px-kreis-gelb';
|
$ret = $ret > 1 ? '10px-kreis-gruen' : isday() ? '10px-kreis-rot' :'10px-kreis-gelb';
|
||||||
$ret = FW_makeImage($ret, 'edit_settings');
|
$ret = FW_makeImage($ret, 'edit_settings');
|
||||||
|
$ret .= ' ';
|
||||||
my $col = substr(Color::pahColor(-10,50,70,ReadingsNum($devname,'temperature',0),$colors),0,6);
|
my $col = substr(Color::pahColor(-10,50,70,ReadingsNum($devname,'temperature',0),$colors),0,6);
|
||||||
$ret .= FW_makeImage("sani_solar_temp\@$col",'file_unknown@grey');
|
$ret .= FW_makeImage("sani_solar_temp\@$col",'file_unknown@grey');
|
||||||
$ret .= ' ';
|
$ret .= ' ';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user