Page 1 of 1

problem with UV,Rain, Wind, solar update in LUA and Json

Posted: Monday 22 July 2024 13:45
by zicht
Version: 2024.7
Build Hash: 1b4c01673
Compile Date: 2024-07-21 12:27:21
dzVents Version: 3.1.8
Python Version: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:38:17) [MSC v.1932 32 bit (Intel)]
Uptime: 2 Uren, 44 Minuten, 0 Seconden

Hi,

Just update 2 hours ago to 2024.7 and i am experiencing some small problems with UV,Rain, Wind, solar

Code: Select all

http://192.168.0.xxx:8080/json.htm?type=command&param=udevice&idx=2441&nvalue=0&svalue=1;1

{
	"status" : "OK",
	"title" : "Update Device"
}
Value visible in domoticz is show as zero. this is so far only for UV,Rain, Wind, solar
( the history is kept and still visible)

tested with :

Code: Select all

	commandArray[#commandArray + 1] = {['UpdateDevice'] = '2441|0|1;1'}
with same result.

Have i missed some change in 2024.7 ?

p.s keep up the good work, still love domoticz and how it manages my home.

Re: problem with UV,Rain, Wind, solar update in LUA and Json

Posted: Monday 22 July 2024 15:04
by waltervl
Check the API rules for your specific device in https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s

Re: problem with UV,Rain, Wind, solar update in LUA and Json

Posted: Monday 22 July 2024 15:36
by jvdz
zicht wrote: Monday 22 July 2024 13:45 Version: 2024.7
Build Hash: 1b4c01673
Compile Date: 2024-07-21 12:27:21

Just update 2 hours ago to 2024.7 and i am experiencing some small problems with UV,Rain, Wind, solar

Code: Select all

http://192.168.0.xxx:8080/json.htm?type=command&param=udevice&idx=2441&nvalue=0&svalue=1;1
I have tried your 2 tests on a Docker play setup of Domoticz 2024.7 and they both worked fine on a dummy rain device:

Code: Select all

http://localhost:8088/json.htm?type=command&param=udevice&idx=178&nvalue=0&svalue=100;2
Schermafbeelding 2024-07-22 153117.png
Schermafbeelding 2024-07-22 153117.png (29.93 KiB) Viewed 570 times

Code: Select all

commandArray = {}
commandArray[#commandArray + 1] = {['UpdateDevice'] = '178|0|100;3'}
return commandArray
Schermafbeelding 2024-07-22 153530.png
Schermafbeelding 2024-07-22 153530.png (29.35 KiB) Viewed 570 times

Re: problem with UV,Rain, Wind, solar update in LUA and Json

Posted: Monday 22 July 2024 21:30
by zicht
@walter thanks for the link. I allways check against those api-urls. I thought maybe something changed and the wiki was not updated jet.
@jvdz m thanks for testing.

I still have no clue, but i will rewrite the complete script and see tomorrow if the values will be populated again.
(it worked allready for a long time, thats why i was suprised after the update to find it was not updating anymore.)

thanks again for the quick en decent support !