Read ReactorSensor trip state with Lua?

Sorry just to read if Reactor sensor is poked, what’s wrong with my code?
local lul_Windy = luup.variable_get(“urn:toggledbits-com:serviceId:ReactorSensor”, “Tripped”, 152)

Wrong service. Since RS’s imitate Vera-standard security sensors (which define and maintain Tripped), you need to use Vera’s standard service ID. Try this:

local lul_Windy = luup.variable_get("urn:micasaverde-com:serviceId:SecuritySensor1", "Tripped", 152)

By the way, you can see the service ID associated with any state defined variable on the device’s Advanced > Variables tab–just hover over the state variable name, and a tooltip will display with the service ID.

1 Like

Sadly, no. Imperihome doesn’t look at device capabilities, or category (consistently), it uses device type. If it did the first (preferably) or the second (good alternative), then every plugin that implemented the capabilities of a native device could have a useful UI.