Replies: 1 comment
-
Partially found answer myself from: https://tasmota.github.io/docs/Scripting-Language/
I'm still missing how to hide from webpage the variable retrieved by Smart Meter Interface eg: M 1 publishes on Main Web Page : SOC 33% ( if SOC is 33 ) Thanks, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folk,
I'm trying to build a MODBUS Smart Meter Interface for a JK-BMS .
My basic script with which I'm practicing looks like
;Fill vars with content on teleperiod
;Webdisplay stuff
SOC is populated and Teleperiod is shown on console.
SOC on the >S is well printed ( readed SOC+100 as example )
.....
17:26:39.360 RSL: SENSOR = {"Time":"2025-05-20T17:26:39","SMA":{"SOC":33}}
17:26:39.366 SOC 133
....
A Berry Rule is triggered on Teleperiod -> final target is to parse the json
tasmota.add_rule("SMA#", def (SOC) queueit(SOC) end )
I need to do some computation on MODBUS parameters before to publish on SENSOR, that's why I added >S (for scripting ) and >J for publishing
>J
,"theSOC":%0v1%
My expectation is to find on SENSOR an additional Json entry under SMA such as {"theSOC":133}
But as reported , SENSOR is not populated with this .
Where I'm wrong?
On Main Tasmota webpage, Instead of showing all the raw MODBUS parameters I want to show only some computed params. On this purpose I added
>W
theSOC: %0v1%
My expectation is to see on welcome page an entry like "theSOC: 133
while on Main Menu webpage I see only "SMA SOC 33%" that is the one picked up by MODBUS
last, I need to retrieve about 30 parameters from the BMS,
every paramenter is shown on Main Tasmota WebPage.
There's a way to avoid showing my params on the webpage ?
Thanks for helping,
Paolo
Beta Was this translation helpful? Give feedback.
All reactions