Repository navigation
Device Flowcards Actions set sensor value
Home > Devices > Device > Flowcards > Actions > Set a virtual sensor value (text)
Set a capability using its typed ID.
Card ID: set_sensor_value.
Select a Device, enter the exact capability ID in Sensor, and supply Value as text or a token. There are no output tokens. The capability must exist on that device and accept the converted value. Numeric text is parsed as a number; true and false (case-insensitive) become booleans; other nonnumeric text remains text. Numeric-looking strings are converted to numbers, so do not use this for numeric-looking string values. Invalid or incompatible values can fail. The write directly sets the capability, not a physical sensor.
Create a Device with measure_temperature. In a Flow choose this action for it, type measure_temperature in Sensor, and put 21.5 in Value. Run the Flow; open the device to see the measured temperature. To copy a real sensor instead, insert its temperature token in Value and use its change trigger.
Support development - If Virtual Devices is useful to you, you can support its
continued development through GitHub Sponsors,
Patreon,
PayPal, or
bunq.
Thank you!