UserVar index out of range

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
woody
New user
Posts: 4
Joined: 27 Apr 2021, 17:33

UserVar index out of range

#1 Post by woody » 09 Jun 2023, 10:03

I have ESP8266 mesuring voltage of a capacitive humidity senzor which is OK. Then i use rule:
on Hum#Analog do
SendToHTTP,192.168.1.239,8080,/json.htm?param=udevice&type=command&idx=28&nvalue=[Hum#Analog]
endon
this rule is working on another senzor but in this senzor it stop working and in log it is a message: UserVar index out of range. I dont know how to remedy this problem.
Thanks for help.

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: UserVar index out of range

#2 Post by Ath » 09 Jun 2023, 10:57

- What exact build do you have installed on your ESP?
- How is the 'Hum' device/task configured?
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: UserVar index out of range

#3 Post by TD-er » 09 Jun 2023, 11:07

And more importantly which build are you using.

Please also try with a build from here: https://td-er.nl/ESPEasy/latest/

I think you're using a build based on code which had a bug in it where the RTC data array (to store the last task values) was cleared and not re-initialized.

woody
New user
Posts: 4
Joined: 27 Apr 2021, 17:33

Re: UserVar index out of range

#4 Post by woody » 10 Jun 2023, 09:28

Because the same error is propagated to the second senzor which is running the same version 20230507 i returned to the previos version and all is working properly ESP_Easy_mega_20230306_normal_ESP8266_4M1M.bin.

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: UserVar index out of range

#5 Post by Ath » 10 Jun 2023, 10:28

Can you show the configuration settings for the Hum task?
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: UserVar index out of range

#6 Post by Ath » 10 Jun 2023, 11:29

woody wrote: 10 Jun 2023, 09:28 Because the same error is propagated to the second senzor which is running the same version 20230507 i returned to the previos version and all is working properly ESP_Easy_mega_20230306_normal_ESP8266_4M1M.bin.
Please also test using the current latest build, as available from https://td-er.nl/ESPEasy/latest/ where you can flash it from the browser when accessing that site from Chrome or Edge, and the unit connected via (USB) Serial. No need (yet) to clear the flash before updating, as that will erase all settings. (Maybe you might need to erase the flash later if the issue is very persistent, but that would be unlikely with this error).
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests