Using a dashboard switch node to activate motor/step counter

@RGGabe welcome to the forum!

  1. what version of NR are you using?
  2. When you say 'dashboard' I think you are referring to the flow editor...correct?
  3. add a debug node (set to display the complete map object) to the output of the MoveMoterCode function node and run a test. Copy the output and put it in a reply.

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

  1. Also export your flow and paste it in a response so people can see what you are doing.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil: icon.

See this post for more details - How to share code or flow json