Update of text device disappears Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Update of text device disappears

Post by janpep »

May be it is since the upgrade to 2025.1 that I notice strange behaviour of text devices that are updated from dzvents scripts.
The scripts have been working without any problems for a long time.

After update of the device, the text shows up very short (second) and immediatly disapears.
Schermafbeelding 2025-05-13 140436.png
Schermafbeelding 2025-05-13 140436.png (29.5 KiB) Viewed 718 times
Notice the update time of the EMPTY text device and see the same update time of the LOG.
Schermafbeelding 2025-05-13 140458.png
Schermafbeelding 2025-05-13 140458.png (66.37 KiB) Viewed 718 times
- Am I the only one experiencing this?
- What could be the cause of this?
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
User avatar
RonkA
Posts: 100
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Harlingen
Contact:

Re: Update of text device disappears

Post by RonkA »

Also on 2025.1 and no problems with textdevices beeing updated via dzVents. (have several running..)
SolarEdge ModbusTCP - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
HvdW
Posts: 594
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Update of text device disappears

Post by HvdW »

Look in the script for updateText.
Maybe it is there twice.
Maybe there are 2 scripts updating the same device.
Use description to describe which script changes the text sensor.
Screenshot_20250513_165538.jpg
Screenshot_20250513_165538.jpg (96.77 KiB) Viewed 706 times
Besides: no problems here after updating Domoticz.
Bugs bug me.
lost
Posts: 659
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update of text device disappears

Post by lost »

Same here, I have a text device logging METAR (aviation related meteo information) every half hour that did not show any glitch, updated from Lua.
Seems unrelated, but take care "textlog" HTTP/JSON API was deprecated and no more usable:
https://wiki.domoticz.com/Domoticz_API/ ... and_newer)
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

RonkA wrote: Tuesday 13 May 2025 16:48 Also on 2025.1 and no problems with textdevices beeing updated via dzVents. (have several running..)
Thanks. It seems that some text devices suffer from this phenomenon and others do not. Always the same ones.
Occasionally I see the text appear, that seems to stay there, but then it disappears with a refresh. Very strange.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

HvdW wrote: Tuesday 13 May 2025 16:58 Look in the script for updateText. Maybe it is there twice.
Maybe there are 2 scripts updating the same device.
Besides: no problems here after updating Domoticz.
Thanks for the tip with the description. I had never used that before. But in this case it doesn't add much for me, because I know it can only come from 1 script. Also the update command is there only once.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

lost wrote: Tuesday 13 May 2025 17:15 Same here, I have a text device logging METAR (aviation related meteo information) every half hour that did not show any glitch, updated from Lua.
Seems unrelated, but take care "textlog" HTTP/JSON API was deprecated and no more usable:
https://wiki.domoticz.com/Domoticz_API/ ... and_newer)
Thank you for the tip with the api. I am updating the device from the script with

Code: Select all

dz.devices( wl_verw_idx ).updateText( verw_text )
where the wl_verw_idx holds the idx of my text device and verw_text is the variable that contains the text that disapears from the text device body, but is/remains visible in the log as shown. Very weird.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Update of text device disappears

Post by waltervl »

Perhaps try with a simple text instead of probably a complex html formatted text.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
HvdW
Posts: 594
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Update of text device disappears

Post by HvdW »

What about logging verw_text to check the contents of what you put in updateText.
BTW In my setup Weerlive acts as it did before.
Bugs bug me.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

waltervl wrote: Tuesday 13 May 2025 20:44 Perhaps try with a simple text instead of probably a complex html formatted text.
Good idea. I will try! (But still strange that it appears in the log the way I expect it.)
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

HvdW wrote: Tuesday 13 May 2025 21:02 What about logging verw_text to check the contents of what you put in updateText.
BTW In my setup Weerlive acts as it did before.
Yes, I will dig into it a bit further tomorrow to find out what is actually happening here.
Nothing changed in the script recently.
Thanks everyone for your thoughts.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

I didn't think about it yesterday, but after the text the icon is also changed.

Code: Select all

dz.devices(wl_verw_idx).setIcon(iconNumber)
That seems to be the cause, although I do not yet understand.
When I comment out the that line, the content remains.
I will continue looking tomorrow.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

After next investigation step, I can confirm that the attempt to change the icon causes the problem.
The line ...

Code: Select all

dz.devices(wl_verw_idx).setIcon(iconNumber)
... is (in the log) translated into the following command ...

Code: Select all

OpenURL: url = http://localIPaddress:portnumber/json.htm?type=command&param=setused&used=true&name=Weerlive+Weersverwachting&description=&idx=1029&switchtype=0&customimage=124
When I look into the wiki, this command seems to be good.

I cannot oversee, but could it have to do something with the upgrade, where it says:

Code: Select all

- Fixed: Custom Icons, making sure they are valid and loaded OK
The custom icons are created with the online generator.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Update of text device disappears

Post by gizmocuz »

Thanks for reporting. I was able to debug this issue and have already pushed a fix in the current code branch.

A new beta release will shortly be released. This does however need OpenSSL3 (Debian Bookworm), see the News/Update section here on the forum
(If you are using Docker or Windows this is no problem)
Quality outlives Quantity!
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

gizmocuz wrote: Thursday 15 May 2025 14:27 I was able to debug this issue and have already pushed a fix in the current code branch.
Great! Thank you!
I will look into what I have to do for the OpenSSL3.
That was already on my list to check.
I am running Domoticz on Ubuntu 24.04.
For the time being, as workaround, I will skip the icon changes.
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Update of text device disappears

Post by gizmocuz »

Ubuntu 24 should be fine and you should already have OpenSSL3

if you issue the below command this will tell you which version it has:

Code: Select all

openssl version
Quality outlives Quantity!
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

gizmocuz wrote: Saturday 17 May 2025 7:35 Ubuntu 24 should be fine and you should already have OpenSSL3
I upgraded also my production environment to:
Version: 2025.1 (build 16695)
Compile Date: 2025-05-16 11:00:11

On Ubuntu 24.04 LTS I have:
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

Then I did an uninstall of the previous needed libssl1.1

Code: Select all

sudo dpkg -r libssl1.1
Ran my scripts with the icon changes and I can confirm that the problem is solved.

Thanks again!
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
janpep
Posts: 268
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Update of text device disappears

Post by janpep »

Maybe a stupid question. How do I mark this topic as solved?
Dz on Ubuntu VM on DS718+ behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Update of text device disappears

Post by waltervl »

Accept an answer response as the answer with the pull down menu on the top right of an answer.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest