DevStateicon shows 6 rows of the same info

Begonnen von xypzo, 16 Februar 2022, 18:40:17

Vorheriges Thema - Nächstes Thema

xypzo

Hi,
I used this piece of code to show me my floor heating temp in, temp out and room temp,
{my $lderr = ReadingsVal($name,"LWT","unknown") eq "Online"?"10px-kreis-gruen":"10px-kreis-rot";;
my $floor = ReadingsVal($name,"DS18B20-2_Temperature","unknown") < 19?"sani_floor_heating_neutral@#0000FF":"sani_floor_heating_neutral@#ffa500";;
my $temp = ReadingsVal($name,"DS18B20-2_Temperature","unknown");;
my $temp1 = ReadingsVal($name,"DS18B20-1_Temperature","unknown");;
my $temp2 = ReadingsVal($name,"DS18B20-3_Temperature","unknown");;
FW_makeImage($lderr)."<a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($floor)."</a><div>Temperatuur: $temp °C / Temp in: $temp1 °C / Temp uit: $temp2 °C </div>"}

But now the info shows 6 times under eachother, do i miss some error in the code?

Beta-User

This sometimes happens, when there's also a multiline stateFormat attribute.

Pls. show the entire device (best: as RAW definition) in case of further questions on this.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

xypzo

OH WOW, thanks so much, that worked like a charm!
Yes next time i will include the RAW code, sry.

Beta-User

You are welcome!
Would you mind mark the thread as [solved] ? (Edit the title in the first message).
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors