Page 1 of 1

Device disappeared since update to 2025.1

Posted: Thursday 15 May 2025 10:12
by imautohuttraeger
Since the update to 2025.1, a certain dummy hardware device has disappeared and now only appears occasionally for a short time.

It is an energy counter / meter which gets the data from my electric meter via an infrared sensor with Tasmoa ("Hichi" infrared head). It worked perfect since the update.

What I have found out is this:

When I open the device list with the filter "all", it is not shown.

Then I switch to "unused" and reload the list. Of course it doesn't appear, as it is a used device.

Then I switch back to "all" and now the device is shown and obviously receives the data. See Screenshot.

After another reload it is away again and only appears shortly again with above mentioned procedure.

In the tab of "utilities" it never appears.

Maybe this log information can help to identify the problem:

Code: Select all

2025-05-15 10:17:15.151 Error: Invalid Number sValue: '%' for device idx: '%'
2025-05-15 10:17:15.155 Error: Invalid Number sValue: '%' for device idx: '%'
2025-05-15 10:17:15.160 Error: Invalid Number sValue: '%' for device idx: '%'
2025-05-15 10:17:15.165 Error: Invalid Number sValue: '%' for device idx: '%'
2025-05-15 10:17:15.272 dzVents: Handling events for: "Zähler Import idx 4", value: "7188;7189.8"
2025-05-15 10:17:15.273 dzVents: ------ Start internal script: p1 dummy fuer energy dashboard: Device: "Zähler Import idx 4 (Dummy Hardware)", Index: 367
2025-05-15 10:17:15.278 dzVents: ------ Finished p1 dummy fuer energy dashboard
Any idea?

Re: Device disappeared since update to 2025.1

Posted: Thursday 15 May 2025 13:40
by gizmocuz
So it seems invalid data is set in the sValue

Who is updating this dummy device? Is it a script? Are you using the correct amount of parameters and values according our JSON wiki page?

Re: Device disappeared since update to 2025.1

Posted: Thursday 15 May 2025 16:03
by RonkA
Is it possible there is a problem with the usage of the devicename and idx where for instance the devicename is used in one script and idx in another?

Re: Device disappeared since update to 2025.1

Posted: Thursday 15 May 2025 16:27
by imautohuttraeger
The dummy device is updated via a Tasmota device ("Hichi" infraread reading d
head attached to the general electric meter). I simply type in the Domoticz IDX under the Tasmota item " Configure Domoticz). I don't define any parameters.

See Screenshot.
Tasmota IDX 4 gets Domoticz IDX 367 and shows the counted imported energy in kWh.

Tasmota IDX 7 gets Domoticz IDX 362 and shows the counted exported energie in kWh (the Tasmota Label "Voltage ..." is not correct here. This Device still works as it did before the Domoticz update.

Tasmota IDX 8 gets Domoticz IDX 447 and shows the current power in W. This Device also still works as it did before the Domoticz update

(The other Tasmota idxs are not delivering any values. The corresponding Domoticz idxs are just the rest of the testing with test devices to see if something is delivered here)

Re: Device disappeared since update to 2025.1

Posted: Thursday 15 May 2025 16:32
by imautohuttraeger
RonkA wrote: Thursday 15 May 2025 16:03 Is it possible there is a problem with the usage of the devicename and idx where for instance the devicename is used in one script and idx in another?
Actually I only use one script that uses this device (a virtual P1 meter so I can see the data in the energy dashboard. There, am using the IDX and not the device name.

This is it:

Code: Select all

-- Dummy Device für das Energy Dashboard. Wird von den Hichi Divices gespeist

return {
    
    on = {
		devices = {
			367, 362, 447
		}
	},
	
	execute = function(domoticz, item)
	    
	    local importcounter = domoticz.devices(367) -- 367 war nach Domoticz-Update weg und poppte nur immer mal kurz auf.
	    local exportcounter = domoticz.devices(362) 
	    local poweractual = domoticz.devices(447)
	    local dummyP1 = domoticz.devices(453)
	    local actualusage = 0
	    local actualprod = 0
	            
	    if poweractual.actualWatt < 0 then 
	                actualprod = 0 - poweractual.actualWatt
	        else
	                 actualusage = poweractual.actualWatt 
	     end
	    dummyP1.updateP1((importcounter.counterToday * 1000),0,
	    (exportcounter.counterToday * 1000),0,actualusage,actualprod)
	
	    
    end
}
It worked perfect bevor the Domoticsz update