Use msg.payload as "value" for actions #1787
Replies: 4 comments 1 reply
-
You can! For example, I have an accelerometer on a microcontroller that feeds that value to a display on a dial - my "data" field looks like thisL {"value":$number($entities("sensor.stamp_train_mpu6886_accel_x").state)} |
Beta Was this translation helpful? Give feedback.
-
Sorry - misunderstood - I'm just using the action node, not the device node - it didn't seem to do what I wanted. |
Beta Was this translation helpful? Give feedback.
-
Sorry, the device node in trigger or action mode only accepts static values. You can use the action node for the same purpose as shown above. |
Beta Was this translation helpful? Give feedback.
-
Maybe I missed something, but no, action node does not work. I want to execute an action which is only available within the context of the device. This specific action is not available (exposed) in the global context. |
Beta Was this translation helpful? Give feedback.
-
Hi,
device node works fine, but to use a fixed value for actions is limiting the fun.
I would love to use i.e. msg.payload as input for actions.
Regards Martin
Beta Was this translation helpful? Give feedback.
All reactions