defmod d dummy
attr d userattr colors
attr d colors rot,grün,blau
attr d readingList colors
attr d setList colors:{'multiple-strict,'.AttrVal($name,'colors','none')}
attr d useSetExtensions 1delete blink
update
shutdown restart
defmod blink BlinkCamera ich@web.de Sehr-Geheim
request2fa
2025.11.23 10:41:22 3: BlinkCamera_Define blink: called
keine sms oder so bekommenset blink armprobiert, und im log dann :2025.11.23 10:42:07 2: BlinkCamera_DoCmd blink: failed due to missing refresh token cmd :refresh: version BlinkCamera
File Rev Last Change
48_BlinkCamera.pm 30486 2025-11-03 21:37:40Z viegener

defmod DG_Thermo dummy
attr DG_Thermo cmdIcon on:Heizung_Hauptschalter.on off:Heizung_Hauptschalter.off
attr DG_Thermo event-on-change-reading boostactive
attr DG_Thermo event-on-update-reading desired,boostintervall,state
attr DG_Thermo group Heizung
attr DG_Thermo icon hc_wht_regler
attr DG_Thermo readingList desired temperature boostinterval readValues
attr DG_Thermo room Haus,Heizung
attr DG_Thermo setList desired:slider,15,0.5,25,1 boostinterval:slider,0,15,120 on off readValues
attr DG_Thermo stateFormat [DG_Temperatur:temperature:d]°C (aktiv:[DG_Heizung:desired-temp:d]° sensor:[DG_Thermo:temperature:d]° offset:[DG_Thermo:tempOffset:d]° boost:[DG_Thermo:state])
attr DG_Thermo useSetExtensions 1
attr DG_Thermo userReadings active-temp { ReadingsNum("DG_Heizung","desired-temp", 0) },\
temperature { ReadingsNum("fbox","shdevice16_temperature", 0) },\
tempOffset { ReadingsNum("fbox","shdevice16_tempOffset", 0) },\
boostactive { ReadingsVal("fbox","shdevice16_currentState", "") eq "TEMPERATURE_BOOST" ? "yes" : "no" },\
summeractive { ReadingsNum("fbox","shdevice16_summerTimeAction", 0) eq "SET_OFF" ? "no" : "yes" }
attr DG_Thermo webCmd desired:on:off
attr DG_Thermo webCmdLabel Thermostat set:Boost On:Off
defmod nDG_Thermo notify DG_Thermo:.* IF ("$EVTPART0" eq "desired:") (set fbox smartHome 16 tmpAdjust:$EVTPART1) ELSE (\
IF ("$EVTPART0" eq "boostinterval:") (set fbox smartHome 16 boost:$EVTPART1) ELSE (\
IF ("$EVTPART0" eq "boostactive:" && "$EVTPART1" eq "no") (set DG_Thermo off) ELSE (\
IF ("$EVTPART0" eq "on") (set fbox smartHome 16 boost:120) ELSE (\
IF ("$EVTPART0" eq "off") (set fbox smartHome 16 boost:0)\
))))
defmod nDG_Temperatur notify DG_Temperatur:temperature:.* IF ([DG_Thermo:summeractive] eq "no") (\
{my $tempoffset = -int(( 0.2\
- ReadingsNum("DG_Heizung","tempadjust",-2.5)\
+ ReadingsNum("DG_Thermo","temperature",20.5)\
- ReadingsNum("DG_Temperatur","temperature",20.5)\
) * 2.0) / 2.0;;\
if ($tempoffset != ReadingsNum("DG_Heizung","tempadjust",-2.5)) {fhem ("set fbox smartHome 16 tempOffset:" . $tempoffset)}}\
)
attr nDG_Temperatur room Heizung,system
attr nDG_Temperatur verbose 2
# when we switch to any other mode, we must check
# if we are currently locked - and if we are locked, we
# must unlock first