Unknown argument activeSpeaker, choose one of on off toggle volumeDown volumeUp mute:on,off,toggle muteT..... set DeinDenon activeSpeaker Speaker_A


Zitat von: musicnrw am 06 Februar 2026, 06:37:31"Das Attribut mode UND das Profil auf dem Shelly (via Weboberfläche oder ShellyApp) müssen BEIDE manuell gesetzt werden, so dass sie gleich sind"mode und model klingt fast gleich, darf aber nicht verwechselt werden. Also:
set <name> mode rgbwUnd auf der Webseite des Shelly unter Settings den Wert Device_profile auf RGBW stellen.Internals:
DEF xxxxxxxx xxx 120
FUUID 67xxxxxxxxca-195xxxxxxxxxxxx2ax
FVERSION 98_vitoconnect.pm:v1.1.1-s29593/2025-01-29
NAME vitoconnect
NR 437
Redirect_URI http://localhost:4200/
STATE last update: 2026-02-06 08:46:40
TYPE vitoconnect
apiKey xxxxxxxxx
counter 0
eventCount 2860
intervall 120
login ok
refresh_token xxxxxxxxxxxxxxxxxxxxxx
timeout 15
user xxxxxxxxxx
HELPER:
PACKAGE main
VERSION 1.0.5
VERSION_API unused
VERSION_CTZ unused
VERSION_ErrCodes unused
VERSION_SMUtils 1.28.3
OLDREADINGS:
READINGS:
2026-02-06 08:46:40 device.messages.errors.counter.d6.value 0
2026-02-06 08:46:40 device.messages.logbook.entries VERDICHTER1, 182, Heizkreis, Inverter_DCbus_ripple, WAERMEPUMPE1, 41, 2026-02-06T08:35:36.000Z, PRIMAERQUELLE1, 120, Heizkreis, PRIMARY_IN, WAERMEPUMPE1, 20, 2026-02-06T08:33:36.000Z, SEK_PUMPE1, 120, Heizkreis, PRIMARY_IN, INTERN_HW_PUFFER, 100, 2026-02-06T08:33:36.000Z, KAELTEKR_UMKEHR, 2, Heizkreis, Inverter_Under_voltage, WAERMEPUMPE1, 0, 2026-02-06T07:14:51.000Z, KAELTEKR_UMKEHR, 4, Heizkreis, Inverter_Autotune_fault, WAERMEPUMPE1, 1, 2026-02-06T07:14:08.000Z
2026-02-06 08:46:40 device.serial.value 7xxxxxxxxxxxxxxxx
2026-02-06 08:46:40 heating.boiler.sensors.temperature.commonSupply.status notConnected
2026-02-06 08:46:40 heating.boiler.serial.value 7xxxxxxxxxxxxxxxx
2026-02-06 08:46:40 heating.buffer.sensors.temperature.main.status notConnected
2026-02-06 08:46:40 heating.buffer.sensors.temperature.top.status connected
2026-02-06 08:46:40 heating.buffer.sensors.temperature.top.value 28.9
2026-02-06 08:46:40 heating.bufferCylinder.sensors.temperature.main.status notConnected
2026-02-06 08:46:40 heating.bufferCylinder.sensors.temperature.top.status connected
2026-02-06 08:46:40 heating.bufferCylinder.sensors.temperature.top.value 28.9
2026-02-06 08:46:40 heating.burners.enabled
2026-02-06 08:46:40 heating.circuits.1.active 1
2026-02-06 08:46:40 heating.circuits.1.circulation.pump.status on
2026-02-06 08:46:40 heating.circuits.1.frostprotection.status on
2026-02-06 08:46:40 heating.circuits.1.heating.curve.shift 0
2026-02-06 08:46:40 heating.circuits.1.heating.curve.slope 0.3
2026-02-06 08:46:40 heating.circuits.1.heating.schedule.active 1
2026-02-06 08:46:40 heating.circuits.1.heating.schedule.entries [{"mon":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"tue":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"wed":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"thu":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"fri":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"sat":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"sun":{"mode":"normal","start":"00:00","end":"24:00","position":0}}]
2026-02-06 08:46:40 heating.circuits.1.name
2026-02-06 08:46:40 heating.circuits.1.name.name
2026-02-06 08:46:40 heating.circuits.1.operating.modes.active.value dhwAndHeatingCooling
2026-02-06 08:46:40 heating.circuits.1.operating.modes.cooling.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.modes.dhw.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.modes.dhwAndHeatingCooling.active 1
2026-02-06 08:46:40 heating.circuits.1.operating.modes.forcedNormal.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.modes.forcedReduced.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.modes.normalStandby.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.modes.standby.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.programs.active.value normal
2026-02-06 08:46:40 heating.circuits.1.operating.programs.comfort.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.programs.comfort.demand unknown
2026-02-06 08:46:40 heating.circuits.1.operating.programs.comfort.temperature 20
2026-02-06 08:46:40 heating.circuits.1.operating.programs.eco.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.programs.eco.temperature 23
2026-02-06 08:46:40 heating.circuits.1.operating.programs.fixed.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.programs.normal.active 1
2026-02-06 08:46:40 heating.circuits.1.operating.programs.normal.demand unknown
2026-02-06 08:46:40 heating.circuits.1.operating.programs.normal.temperature 23
2026-02-06 08:46:40 heating.circuits.1.operating.programs.reduced.active 0
2026-02-06 08:46:40 heating.circuits.1.operating.programs.reduced.demand unknown
2026-02-06 08:46:40 heating.circuits.1.operating.programs.reduced.temperature 16
2026-02-06 08:46:40 heating.circuits.1.operating.programs.screedDrying.heatpump.useApproved 0
2026-02-06 08:46:40 heating.circuits.1.operating.programs.standby.active 0
2026-02-06 08:46:40 heating.circuits.1.sensors.temperature.supply.status connected
2026-02-06 08:46:40 heating.circuits.1.sensors.temperature.supply.value 29.7
2026-02-06 08:46:40 heating.circuits.1.temperature.levels.max 45
2026-02-06 08:46:40 heating.circuits.1.temperature.levels.min 15
2026-02-06 08:46:40 heating.circuits.1.temperature.value 30.2
2026-02-06 08:46:40 heating.circuits.1.type heatingCircuit
2026-02-06 08:46:40 heating.circuits.enabled 1
2026-02-06 08:46:40 heating.circuits.internal
2026-02-06 08:46:40 heating.compressors.0.active 1
2026-02-06 08:46:40 heating.compressors.0.phase heating
2026-02-06 08:46:40 heating.compressors.0.power.value 16
2026-02-06 08:46:40 heating.compressors.0.sensors.power.status connected
2026-02-06 08:46:40 heating.compressors.0.sensors.power.value 63
2026-02-06 08:46:40 heating.compressors.0.sensors.pressure.inlet.status connected
2026-02-06 08:46:40 heating.compressors.0.sensors.pressure.inlet.value 6.4
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.ambient.status connected
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.ambient.value 16.4
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.inlet.status connected
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.inlet.value -0.2
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.outlet.status connected
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.outlet.value 64.4
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.overheat.status connected
2026-02-06 08:46:40 heating.compressors.0.sensors.temperature.overheat.value 6.7
2026-02-06 08:46:40 heating.compressors.0.statistics.hours 2599.1
2026-02-06 08:46:40 heating.compressors.0.statistics.load.hoursLoadClassFive 419
2026-02-06 08:46:40 heating.compressors.0.statistics.load.hoursLoadClassFour 881
2026-02-06 08:46:40 heating.compressors.0.statistics.load.hoursLoadClassOne 232
2026-02-06 08:46:40 heating.compressors.0.statistics.load.hoursLoadClassThree 819
2026-02-06 08:46:40 heating.compressors.0.statistics.load.hoursLoadClassTwo 174
2026-02-06 08:46:40 heating.compressors.0.statistics.starts 3613
2026-02-06 08:46:40 heating.compressors.enabled 0
2026-02-06 08:46:40 heating.condensors.0.sensors.temperature.subcooling.status notConnected
2026-02-06 08:46:40 heating.configuration.buffer.temperature.max.value 60
2026-02-06 08:46:40 heating.configuration.dhw.temperature.dhwCylinder.max.value 60
2026-02-06 08:46:40 heating.configuration.dhw.temperature.hotWaterStorage.max.value 60
2026-02-06 08:46:40 heating.configuration.dhwHeater.useApproved 0
2026-02-06 08:46:40 heating.configuration.heatingRod.dhw.useApproved 0
2026-02-06 08:46:40 heating.configuration.heatingRod.heating.useApproved 0
2026-02-06 08:46:40 heating.configuration.smartGrid.heatingRod.approvedLevel 3
2026-02-06 08:46:40 heating.configuration.temperature.outside.DampingFactor.value 180
2026-02-06 08:46:40 heating.controller.serial.value [VUC]
2026-02-06 08:46:40 heating.coolingCircuits.0.type.value VC 200-S Emerson
2026-02-06 08:46:40 heating.cop.cooling.value 6.1
2026-02-06 08:46:40 heating.cop.dhw.value 3.1
2026-02-06 08:46:40 heating.cop.green.value 0
2026-02-06 08:46:40 heating.cop.heating.value 3.7
2026-02-06 08:46:40 heating.cop.total.value 3.4
2026-02-06 08:46:40 heating.device.mainECU.runtime 47375310
2026-02-06 08:46:40 heating.dhw.active 1
2026-02-06 08:46:40 heating.dhw.charging.active 0
2026-02-06 08:46:40 heating.dhw.configuration.temperature.dhwCylinder.max.value 60
2026-02-06 08:46:40 heating.dhw.oneTimeCharge.active 0
2026-02-06 08:46:40 heating.dhw.pumps.circulation.schedule.active 1
2026-02-06 08:46:40 heating.dhw.pumps.circulation.schedule.entries [{"mon":{"mode":"on","start":"00:00","end":"24:00","position":0}},{"tue":{"mode":"on","start":"00:00","end":"24:00","position":0}},{"wed":{"mode":"on","start":"00:00","end":"24:00","position":0}},{"thu":{"mode":"on","start":"00:00","end":"24:00","position":0}},{"fri":{"mode":"on","start":"00:00","end":"24:00","position":0}},{"sat":{"mode":"on","start":"00:00","end":"24:00","position":0}},{"sun":{"mode":"on","start":"00:00","end":"24:00","position":0}}]
2026-02-06 08:46:40 heating.dhw.pumps.circulation.status on
2026-02-06 08:46:40 heating.dhw.schedule.active 1
2026-02-06 08:46:40 heating.dhw.schedule.entries [{"mon":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"tue":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"wed":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"thu":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"fri":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"sat":{"mode":"normal","start":"00:00","end":"24:00","position":0}},{"sun":{"mode":"normal","start":"00:00","end":"24:00","position":0}}]
2026-02-06 08:46:40 heating.dhw.sensors.temperature.dhwCylinder.bottom.status notConnected
2026-02-06 08:46:40 heating.dhw.sensors.temperature.dhwCylinder.status connected
2026-02-06 08:46:40 heating.dhw.sensors.temperature.dhwCylinder.top.status connected
2026-02-06 08:46:40 heating.dhw.sensors.temperature.dhwCylinder.top.value 46.1
2026-02-06 08:46:40 heating.dhw.sensors.temperature.dhwCylinder.value 46.1
2026-02-06 08:46:40 heating.dhw.sensors.temperature.hotWaterStorage.bottom.status notConnected
2026-02-06 08:46:40 heating.dhw.sensors.temperature.hotWaterStorage.status connected
2026-02-06 08:46:40 heating.dhw.sensors.temperature.hotWaterStorage.top.status connected
2026-02-06 08:46:40 heating.dhw.sensors.temperature.hotWaterStorage.top.value 46.1
2026-02-06 08:46:40 heating.dhw.sensors.temperature.hotWaterStorage.value 46.1
2026-02-06 08:46:40 heating.dhw.sensors.temperature.outlet.status notConnected
2026-02-06 08:46:40 heating.dhw.status on
2026-02-06 08:46:40 heating.dhw.temperature.hysteresis.switchOffValue 5
2026-02-06 08:46:40 heating.dhw.temperature.hysteresis.switchOnValue 5
2026-02-06 08:46:40 heating.dhw.temperature.hysteresis.value 5
2026-02-06 08:46:40 heating.dhw.temperature.main.value 50
2026-02-06 08:46:40 heating.dhw.temperature.temp2.value 55
2026-02-06 08:46:40 heating.evaporators.0.sensors.temperature.liquid.status connected
2026-02-06 08:46:40 heating.evaporators.0.sensors.temperature.liquid.value 32.7
2026-02-06 08:46:40 heating.evaporators.0.sensors.temperature.overheat.status connected
2026-02-06 08:46:40 heating.evaporators.0.sensors.temperature.overheat.value 3.8
2026-02-06 08:46:40 heating.heatingRod.runtime.levelOne 268
2026-02-06 08:46:40 heating.heatingRod.runtime.levelTwo 269
2026-02-06 08:46:40 heating.operating.programs.holiday.active 0
2026-02-06 08:46:40 heating.operating.programs.holiday.end
2026-02-06 08:46:40 heating.operating.programs.holiday.start
2026-02-06 08:46:40 heating.primaryCircuit.sensors.rotation.status connected
2026-02-06 08:46:40 heating.primaryCircuit.sensors.rotation.value 91
2026-02-06 08:46:40 heating.primaryCircuit.sensors.temperature.return.status notConnected
2026-02-06 08:46:40 heating.primaryCircuit.sensors.temperature.supply.status connected
2026-02-06 08:46:40 heating.primaryCircuit.sensors.temperature.supply.value 1.2
2026-02-06 08:46:40 heating.secondaryCircuit.sensors.temperature.supply.status connected
2026-02-06 08:46:40 heating.secondaryCircuit.sensors.temperature.supply.value 33.7
2026-02-06 08:46:40 heating.sensors.pressure.hotGas.status connected
2026-02-06 08:46:40 heating.sensors.pressure.hotGas.value 21.2
2026-02-06 08:46:40 heating.sensors.pressure.suctionGas.status connected
2026-02-06 08:46:40 heating.sensors.pressure.suctionGas.value 6.4
2026-02-06 08:46:40 heating.sensors.temperature.hotGas.status connected
2026-02-06 08:46:40 heating.sensors.temperature.hotGas.value 64.4
2026-02-06 08:46:40 heating.sensors.temperature.liquidGas.status connected
2026-02-06 08:46:40 heating.sensors.temperature.liquidGas.value 32.7
2026-02-06 08:46:40 heating.sensors.temperature.outside.status connected
2026-02-06 08:46:40 heating.sensors.temperature.outside.value 1.4
2026-02-06 08:46:40 heating.sensors.temperature.return.status connected
2026-02-06 08:46:40 heating.sensors.temperature.return.value 28.5
2026-02-06 08:46:40 heating.sensors.temperature.suctionGas.status connected
2026-02-06 08:46:40 heating.sensors.temperature.suctionGas.value -0.2
2026-02-06 08:46:40 state last update: 2026-02-06 08:46:40
2026-02-06 08:46:40 ur_HK-Solltemperatur_Mode 1
2026-02-06 08:46:40 ur_HK2-Betriebsart_nr 4
2026-02-06 08:46:40 ur_HK2-Solltemperatur 23
2026-02-06 08:46:40 ur_error_code 0
2026-02-06 08:46:40 ur_error_level 0
2026-02-06 08:46:40 ur_error_severity normal operation
2026-02-06 08:46:40 ur_ventilation.active.level 2
2026-02-06 08:46:40 ur_ventilation.active.volumeFlow 130
2026-02-06 08:46:40 ventilation.active 1
2026-02-06 08:46:40 ventilation.heatExchanger.frostprotection.status off
2026-02-06 08:46:40 ventilation.operating.modes.active.value ventilation
2026-02-06 08:46:40 ventilation.operating.modes.standard.active 0
2026-02-06 08:46:40 ventilation.operating.modes.standby.active 0
2026-02-06 08:46:40 ventilation.operating.modes.ventilation.active 1
2026-02-06 08:46:40 ventilation.operating.programs.active.value levelTwo
2026-02-06 08:46:40 ventilation.operating.state.demand ventilation
2026-02-06 08:46:40 ventilation.operating.state.level levelTwo
2026-02-06 08:46:40 ventilation.operating.state.reason schedule
2026-02-06 08:46:40 ventilation.quickmodes.comfort.active 0
2026-02-06 08:46:40 ventilation.quickmodes.eco.active 0
2026-02-06 08:46:40 ventilation.quickmodes.holiday.active 0
2026-02-06 08:46:40 ventilation.quickmodes.holiday.end
2026-02-06 08:46:40 ventilation.quickmodes.holiday.start
2026-02-06 08:46:40 ventilation.schedule.active 1
2026-02-06 08:46:40 ventilation.schedule.entries [{"mon":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}},{"tue":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}},{"wed":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}},{"thu":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}},{"fri":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}},{"sat":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}},{"sun":{"mode":"levelTwo","start":"00:00","end":"24:00","position":0}}]
2026-02-06 08:46:40 ventilation.volumeFlow.current.input.value 235
2026-02-06 08:46:40 ventilation.volumeFlow.current.output.value 225
devices:
763xxxxxxxxx:
gatewayType VitoconnectOPTO2
installationId xxxxxx
version 2.51.5.0
Attributes:
event-min-interval ur_HK2-Solltemperatur:3600,heating.sensors.temperature.outside.value:3600,heating.circuits.1.temperature.value:3600
event-on-change-reading .*
loxone ja
oldreadings ur_error_severity
room Viessmann
userReadings ur_HK2-Betriebsart_nr {
my $Betriebsart = ReadingsVal($name, 'heating.circuits.1.operating.modes.active.value', '0');
my $Betriebsart_nr = 0;
$Betriebsart_nr = 1 if($Betriebsart eq "standby");
$Betriebsart_nr = 2 if($Betriebsart eq "dhw");
$Betriebsart_nr = 3 if($Betriebsart eq "dhwAndHeating");
$Betriebsart_nr = 4 if($Betriebsart eq "dhwAndHeatingCooling");
return $Betriebsart_nr
},
ur_HK2-Solltemperatur {
my $Solltemperatur_normal = ReadingsVal($name, 'heating.circuits.1.operating.programs.normal.temperature', '0');
my $Solltemperatur_eco = ReadingsVal($name, 'heating.circuits.1.operating.programs.eco.temperature', '0');
my $Solltemperatur_comfort = ReadingsVal($name, 'heating.circuits.1.operating.programs.comfort.temperature', '0');
my $Solltemperatur_reduziert = ReadingsVal($name, 'heating.circuits.1.operating.programs.reduced.temperature', '0');
my $Solltemperatur_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.normal.active', '0');
my $Solltemperatur_eco_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.eco.active', '0');
my $Solltemperatur_comfort_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.comfort.active', '0');
my $Solltemperatur_reduziert_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.reduced.active', '0');
my $Solltemperatur = "unknown";
$Solltemperatur = $Solltemperatur_normal if ($Solltemperatur_aktiv == 1);
$Solltemperatur = $Solltemperatur_eco if ($Solltemperatur_eco_aktiv == 1);
$Solltemperatur = $Solltemperatur_comfort if ($Solltemperatur_comfort_aktiv == 1);
$Solltemperatur = $Solltemperatur_reduziert if ($Solltemperatur_reduziert_aktiv == 1);
return $Solltemperatur
},
ur_HK-Solltemperatur_Mode {
my $Solltemperatur_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.normal.active', '0');
my $Solltemperatur_eco_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.eco.active', '0');
my $Solltemperatur_comfort_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.comfort.active', '0');
my $Solltemperatur_reduziert_aktiv = ReadingsVal($name, 'heating.circuits.1.operating.programs.reduced.active', '0');
my $Mode = 0;
$Mode = 1 if ($Solltemperatur_aktiv == 1);
$Mode = 2 if ($Solltemperatur_eco_aktiv == 1);
$Mode = 3 if ($Solltemperatur_comfort_aktiv == 1);
$Mode = 4 if ($Solltemperatur_reduziert_aktiv == 1);
return $Mode
},
ur_ventilation.active.level {
my $level = 0;
$level = 0 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelOff");
$level = 1 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelOne");
$level = 2 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelTwo");
$level = 3 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelTree");
$level = 4 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelFore");
return $level
},
ur_ventilation.active.volumeFlow {
my $level = 0;
$level = 0 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelOff");
$level = 1 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelOne");
$level = 2 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelTwo");
$level = 3 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelTree");
$level = 4 if (ReadingsVal($name, 'ventilation.operating.state.level', '0') eq "levelFore");
my $Level0volumeFlow = ReadingsVal($name, 'ventilation.operating.programs.standby.volumeFlow', '0');
my $Level1volumeFlow = ReadingsVal($name, 'ventilation.operating.programs.levelOne.volumeFlow', '0');
my $Level2volumeFlow = ReadingsVal($name, 'ventilation.operating.programs.levelTwo.volumeFlow', '0');
my $Level3volumeFlow = ReadingsVal($name, 'ventilation.operating.programs.levelThree.volumeFlow', '0');
my $Level4volumeFlow = ReadingsVal($name, 'ventilation.operating.programs.levelFour.volumeFlow', '0');
$Level0volumeFlow = 0;
$Level1volumeFlow = 50;
$Level2volumeFlow = 130;
$Level3volumeFlow = 180;
$Level4volumeFlow = 235;
my $volumeFlow = 0;
$volumeFlow = $Level0volumeFlow if($level == 0);
$volumeFlow = $Level1volumeFlow if($level == 1);
$volumeFlow = $Level2volumeFlow if($level == 2);
$volumeFlow = $Level3volumeFlow if($level == 3);
$volumeFlow = $Level4volumeFlow if($level == 4);
return $volumeFlow
},
ur_error_code {
my $raw = ReadingsVal($name, 'device.messages.errors.raw.entries', '');
return "0" if ($raw eq ""); # Falls leer, gib 0 zurück
# Zerlege den String an den Kommas (mit optionalen Leerzeichen)
my @fields = split(/,\s*/, $raw);
# Das zweite Element (Index 1) enthält den Fehlercode, ansonsten 0
my $code = defined($fields[1]) && ($fields[1] ne "") ? $fields[1] : "0";
return $code;
},
ur_error_severity {
my $raw = ReadingsVal($name, 'device.messages.errors.raw.entries', '');
return "normal operation" if ($raw eq "");
my @fields = split(/,\s*/, $raw);
return defined($fields[2]) && ($fields[2] ne "") ? $fields[2] : "normal operation";
},
ur_error_level {
my $raw = ReadingsVal($name, 'device.messages.errors.raw.entries', '');
return "0" if ($raw eq "");
my @fields = split(/,\s*/, $raw);
my $severity = defined($fields[2]) ? $fields[2] : "";
if ($severity eq "note") {
return "1";
}
elsif ($severity eq "warning") {
return "2";
}
elsif ($severity eq "error") {
return "3";
}
elsif ($severity eq "criticalError") {
return "4";
}
else {
return "5";
}
}
vitoconnect_installationID xxxxxx
vitoconnect_raw_readings 1
vitoconnect_serial 7xxxxxxxxxxxxxxxx
vitoconnect_showKaeltekreislauf 1