Lua Scripts - Device Parameter Value & Variable

Hi,

Working on a Lua Scripts to use from mesbot:
How to get/set data from an existing device?
How to get/set variables created in Advanced Scripting?

Something like this where LastHumidityValue is a global variable defined under Advanced Scripting - Variables :

– Saving current humidity value.
LastHumidityValue = storage.get_number(“params.humidity_sensor_humidity.value”)


This does not work.

Hello @rockbuck

We have sent you an email to check your controller and device capabilities. Could you please check your inbox?

We will share the results here later.

Hello @JonathanB , nothing in my inbox (even in spam folder). Please resend.

Hello,

We’ve reviewed the scenario and, after evaluating our current options, we were unable to find a reliable method to implement this logic using Lua scripts. As a result, we’ve submitted a feature request (ECFI-28) to our development team to create or enable the option to compare stored and current sensor values directly within MeshBots.

We’ll make sure to keep you informed of any progress or updates.

1 Like