I;m wanting to retrieve the state description metadata in a Blockly rule, I see we have some metadata blocks now, but I;m unclear how I retrieve a state description. What namespace do I need to use? The state description options are in the form of a map, how do I retrieve and use this?
This approach fails at this point: [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'UpsChange' failed: org.graalvm.polyglot.PolyglotException: ReferenceError: "ApcStatus_Output" is not defined
Oddly if I dump just the get metadata value straight into the log I get an empty value instead of undefined.
I tried some of the other shapes and have found this approach gets what I need:
I used the wrong block in my example. It should be the get metadata config block like you are using in your working example. But you shouldn’t have to convert the configuration to a String and then convert it back into a List. It’s already a dictionary. You should be able to just pull the value using the get “options” from dictionary block.