I want to display my door switch state in the Thinger.io dashboard. Thinger.io is already receiving data from my door switch sensor, but how to display its state in the dashboard?
- What widget type do I need to use?
- How to configure the widget to show the door switch state?
My code, to trasmit data from my door switch looks like this:
thing["door"] >> [](pson& out) { out = digitalRead(PIN_SWITCH); };
As you may know, the state cannot be manipulated from remote! It is a read-only device.