Platform Update - Dynamic Input Controls and Workflow Switch Node

Today's release provides major new features for your dashboards and workflows. For dashboards, the value of input controls can now be controlled by the state of your devices. For workflows, you now have access to the new switch node, which makes comparing against multiple values a lot easier.

Dynamic Input Controls

The ability to set the value of input controls based on the state of your devices has been a commonly requested feature. This can now be accomplished by using the new dynamic default value feature.

input-controls-settings.png

When using a dynamic default, you can choose a device and attribute for the input control's value. The input control will now reflect the most recent reported state every time the dashboard updates.

The user experience of the input controls block has also been updated to better communicate the difference between viewing and editing data. There is now a toggle on the top right corner to switch between modes.

input-controls-1.png

When in view mode, the controls cannot be changed and are reflecting the underlying device data. When changed to edit mode, you can change the controls and issue commands using the buttons.

There is also a small icon added to the top of any control that is using a dynamic default, so you can easily tell which ones update as the underlying device state changes.

Workflow Switch Node

The new switch node makes it easy to compare a single input value against several possibilities. The example below is from our Alexa skill article, and replaces a bunch of conditional nodes with a single switch node.

switch-node.png

The switch node works a lot like a typical switch statement in code. You start by providing the value to check, which will commonly come from the payload. You then provide one or more cases. The input value will be compared against each case and the workflow will take the path of the first match.

Other Updates

  • Buffer is now available in the workflow function node.
  • The total is now displayed on the pie chart popup. Thanks Tim for the suggestion!
  • Released an open-source React component for embedding dashboard blocks. Thanks J_R for the idea!

What's Next?

As always, many of our new features and improvements come directly from user suggestions. If you have something you'd like to see become part of our platform please let us know in our forums.

There are 0 Comments

What is Losant?

Losant is an Internet of Things developer platform that makes it easy to build secure, complex connected experiences.

Losant’s platform enables you to intelligently manage your devices, collect and visualize data, and ultimately take action on data through highly customizable workflows - all in real-time.

Get Started For Free

Platform Update - Dynamic Input Controls and Workflow Switch Node