Zitat von: piet_pit am 14 Februar 2026, 17:12:18Hallo Beta-User,1. Dein ASC_Pos_Reading ist state.
hier das list des readingsProxy...Internals:
CFGFN
DEF DachgeschossRollo:pct_0
DEVICE DachgeschossRollo
FUUID 698f3978-f33f-5815-14d3-2ea74ba787511042
NAME Dachgeschoss_Rollo_Hinten
NOTIFYDEV global,DachgeschossRollo
NR 171
NTFY_ORDER 50-Dachgeschoss_Rollo_Hinten
READING pct_0
STATE 70
TYPE readingsProxy
eventCount 4
CONTENT:
DachgeschossRollo 1
READINGS:
2026-02-14 13:32:14 ASC_Enable on
2026-02-14 13:32:19 ASC_Time_DriveDown 14.02.2026 - 18:19
2026-02-14 13:32:19 ASC_Time_DriveUp 15.02.2026 - 07:13
2026-02-14 13:32:16 associatedWith pietASC
2026-02-14 12:27:57 lastCmd pos
2026-02-14 12:28:58 state 70
Attributes:
ASC 1
ASC_Closed_Pos 0
ASC_Open_Pos 100
ASC_Pos_Reading position
room Dachgeschoss
setFn {
my ($hash, $name, $cmd, @args) = @_;
my $parent = "DachgeschossRollo";
return "Unknown argument $cmd"
unless $cmd =~ /^(open|closed|stop|pos)$/;
if ($cmd eq "pos") {
return "pos needs value" unless defined $args[0];
fhem("set $parent pct $args[0] 0");
}
elsif ($cmd eq "open") {
fhem("set $parent open 0");
}
elsif ($cmd eq "closed") {
fhem("set $parent closed 0");
}
else {
fhem("set $parent stop 0");
}
return undef;
}
setList open:noArg closed:noArg stop:noArg pos:slider,0,1,100
userattr ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforeDayOpen ASC_BlockingTime_beforeNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_CommandTemplate ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_BetweenTheTime ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace,awning,EG_window ASC_SlatPosCmd_SlatDevice ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
valueFn { ReadingsVal("DachgeschossRollo", "pct_0", 0) }
webCmd open:stop:close
Vielen Dank und viele Grüße
Pit
Zitat von: FlatTV am 13 Februar 2026, 17:38:02Stimmt noch irgendwas nicht?Langsam, ich habe durchaus noch andere Baustellen.
Internals:
CFGFN
DEF DachgeschossRollo:pct_0
DEVICE DachgeschossRollo
FUUID 698f3978-f33f-5815-14d3-2ea74ba787511042
NAME Dachgeschoss_Rollo_Hinten
NOTIFYDEV global,DachgeschossRollo
NR 171
NTFY_ORDER 50-Dachgeschoss_Rollo_Hinten
READING pct_0
STATE 70
TYPE readingsProxy
eventCount 4
CONTENT:
DachgeschossRollo 1
READINGS:
2026-02-14 13:32:14 ASC_Enable on
2026-02-14 13:32:19 ASC_Time_DriveDown 14.02.2026 - 18:19
2026-02-14 13:32:19 ASC_Time_DriveUp 15.02.2026 - 07:13
2026-02-14 13:32:16 associatedWith pietASC
2026-02-14 12:27:57 lastCmd pos
2026-02-14 12:28:58 state 70
Attributes:
ASC 1
ASC_Closed_Pos 0
ASC_Open_Pos 100
ASC_Pos_Reading position
room Dachgeschoss
setFn {
my ($hash, $name, $cmd, @args) = @_;
my $parent = "DachgeschossRollo";
return "Unknown argument $cmd"
unless $cmd =~ /^(open|closed|stop|pos)$/;
if ($cmd eq "pos") {
return "pos needs value" unless defined $args[0];
fhem("set $parent pct $args[0] 0");
}
elsif ($cmd eq "open") {
fhem("set $parent open 0");
}
elsif ($cmd eq "closed") {
fhem("set $parent closed 0");
}
else {
fhem("set $parent stop 0");
}
return undef;
}
setList open:noArg closed:noArg stop:noArg pos:slider,0,1,100
userattr ASC_Adv:on,off ASC_Antifreeze:off,soft,hard,am,pm ASC_Antifreeze_Pos:5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100 ASC_AutoAstroModeEvening:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeEveningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_AutoAstroModeMorning:REAL,CIVIL,NAUTIC,ASTRONOMIC,HORIZON ASC_AutoAstroModeMorningHorizon:-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9 ASC_BlockingTime_afterManual ASC_BlockingTime_beforeDayOpen ASC_BlockingTime_beforeNightClose ASC_BrightnessSensor ASC_Closed_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_ComfortOpen_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_CommandTemplate ASC_Down:time,astro,brightness,roommate ASC_DriveUpMaxDuration ASC_Drive_Delay ASC_Drive_DelayStart ASC_ExternalTrigger ASC_GuestRoom:on,off ASC_LockOut:soft,hard,off ASC_LockOut_Cmd:inhibit,blocked,protection ASC_Mode_Down:absent,always,off,home ASC_Mode_Up:absent,always,off,home ASC_Open_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_Partymode:on,off ASC_Pos_Reading ASC_PrivacyDownValue_beforeNightClose ASC_PrivacyDown_Pos ASC_PrivacyUpValue_beforeDayOpen ASC_PrivacyUp_Pos ASC_RainProtection:on,off ASC_Roommate_Device ASC_Roommate_Reading ASC_Self_Defense_AbsentDelay ASC_Self_Defense_Mode:absent,gone,off ASC_Shading_BetweenTheTime ASC_Shading_InOutAzimuth ASC_Shading_MinMax_Elevation ASC_Shading_Min_OutsideTemperature ASC_Shading_Mode:absent,always,off,home ASC_Shading_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Shading_StateChange_SunnyCloudy ASC_Shading_WaitingPeriod ASC_Shutter_IdleDetection ASC_ShuttersPlace:window,terrace,awning,EG_window ASC_SlatPosCmd_SlatDevice ASC_Sleep_Pos:0,10,20,30,40,50,60,70,80,90,100 ASC_TempSensor ASC_Time_Down_Early ASC_Time_Down_Late ASC_Time_Up_Early ASC_Time_Up_Late ASC_Time_Up_WE_Holiday ASC_Up:time,astro,brightness,roommate ASC_Ventilate_Pos:10,20,30,40,50,60,70,80,90,100 ASC_Ventilate_Window_Open:on,off ASC_WiggleValue ASC_WindParameters ASC_WindProtection:on,off ASC_WindowRec ASC_WindowRec_PosAfterDayClosed:open,lastManual ASC_WindowRec_subType:twostate,threestate
valueFn { ReadingsVal("DachgeschossRollo", "pct_0", 0) }
webCmd open:stop:closeZitat von: CoolTux am 14 Februar 2026, 16:43:19eine Art Wrapper programmieren müssen befürchte ich.Genau das kann readingsProxy eigentlich auch sein...
Zitat von: CoolTux am 14 Februar 2026, 15:40:53Hallo,Wo genau soll das Problem liegen?
Ein readingsproxy dient eigentlich dazu immer nur ein reading aus einem Device zu nehmen und separat da zu stellen. Damit kann ASC nicht zusammen arbeiten.
defmod ShellyBoiler Shelly 192.168.178.xx
attr ShellyBoiler event-min-interval .*:3600
attr ShellyBoiler event-on-change-reading .*
attr ShellyBoiler eventMap /on 0:1kW-ein/off 0:1kW-aus/on 1:2kW-ein/off 1:2kW-aus
attr ShellyBoiler icon sani_buffer_electric_heater_side
attr ShellyBoiler interval 60
attr ShellyBoiler mode relay
attr ShellyBoiler model shellyplus2pm
attr ShellyBoiler stateFormat 1kW:relay_0\
<br>\
2kW:relay_1
attr ShellyBoiler userReadings power_sum:power_.* {my $val = ReadingsVal($name,"power_0",0) + ReadingsVal($name,"power_1",0);;;;$val},\
energy_sum:energy_.* {my $val = ReadingsVal($name,"energy_0",0) + ReadingsVal($name,"energy_1",0);;;;$val},
attr ShellyBoiler webCmd 1kW-ein:1kW-aus:2kW-ein:2kW-aus
attr ShellyBoiler webhook WEB
setstate ShellyBoiler 1kW:off\
<br>\
2kW:offDer DOIF ruft diese Kommandos hier auf:set <name> pct 50 1Für Kanal 2set <name> pct 50 0