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

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
zicht
Posts: 251
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

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

Post 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.
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

Check the API rules for your specific device in https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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 568 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 568 times
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
zicht
Posts: 251
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

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

Post 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 !
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest