id: sim-devices topic: sim-world title: The bundled sim devices — drive a world without an HC3 pins: - tests/test_qa.py::test_sim_device_sensor_ui - tests/test_qa.py::test_load_sim_device_bundled verified: flua 0.1.168


The bundled sim devices — drive a world without an HC3

src/flua/simdevices/*.lua ship in the wheel and load by bare name:

local motion = _FLUA.loadSimDevice("motionSensor")
fibaro.call(motion, "breach")          -- value = true
local temp = _FLUA.loadSimDevice("temperatureSensor",
  {"name:Hall temp", "property:value=21.5", "property:unit=C"})