Hi,
I want to display a variable in the same way as a state like the pingpresence.
Is this possible? How should I configure the variable and the device?
Thanks.
-
[solved]How-to display a variable as a state
-
said:
Is this possible?
You can do this using a
DummyPresenceSensor
. The following example shows a presence sensor for the state of a light switch.{ "id": "dummyPresence1", "class": "DummyPresenceSensor", "name": "Dummy Presence" }, ... { "id": "dummypresence1-on", "name": "dummyPresence1-on", "rule": "if light is turned on then set presence of dummyPresence1 present", "active": true, "logging": true }, { "id": "dummypresence1-off", "name": "dummyPresence1-off", "rule": "if light is turned off then set presence of dummyPresence1 absent", "active": true, "logging": true }
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Thanks a lot