Repository navigation
Device Flowcards Actions set sensor value oc
Home > Devices > Device > Flowcards > Actions > Set a virtual sensor value (select)
Set a capability selected from the device list.
Card ID: set_sensor_value_oc.
Select a Device, then choose its capability from the Virtual Sensor autocomplete list and supply Value as text or a token. There are no output tokens. The list is built from that device’s capabilities; selection does not guarantee that the value is valid. Numeric text is parsed as a number; true and false (case-insensitive) become booleans; other nonnumeric text remains text. Numeric-looking strings become numbers. Invalid or incompatible values can fail. This writes the virtual capability, not a physical sensor.
Create a Device with measure_temperature. Add this action in a Flow, choose that device and measure_temperature from the list, and enter 21.5 as Value. Run it and open the device to check the temperature. A real sensor’s temperature token can replace the fixed value.
Support development - If Virtual Devices is useful to you, you can support its
continued development through GitHub Sponsors,
Patreon,
PayPal, or
bunq.
Thank you!