0
Discuss & Vote

Configure switch tile as contact sensor?

Max R 6 years ago in Panels (dashboards) updated by Terry (ActionTiles) (Co-Founder) 6 years ago 1

Hi all, I might be overlooking the obvious, yet here goes.

I have several virtual switches configured in ST for various purposes. One such vswitch is controlled by a Webcore piston monitoring the Watt usage on a smartplug: If said appliance is using more than X watts, turn v.switch on and vice versa.


While said v.switch is used for other logic elsewhere, I'd like to display the status of the switch, much like a contact sensor in ActionTiles. That way it just displays as ON/OFF, yet can't be inadvertently toggled by the Mugglers around the house.

Any ideas for a workaround, or is this something worthy of a feature request? Thanks.

Answer

Answer
Discuss & Vote

You have a few options:

  1. Use Switch Tiles, but add PIN Protection to them so that they can't be accidentally toggled.
  2. or Modify your Virtual Switch DTH to also claim Capability "Contact Sensor" and have it concurrently send an "open" event whenever the switch is toggled "on", and "closed" when the switch turned "off".

    This Virtual Sensor will now offer Tiles of type Switch and type Contact Sensor.
Answer
Discuss & Vote

You have a few options:

  1. Use Switch Tiles, but add PIN Protection to them so that they can't be accidentally toggled.
  2. or Modify your Virtual Switch DTH to also claim Capability "Contact Sensor" and have it concurrently send an "open" event whenever the switch is toggled "on", and "closed" when the switch turned "off".

    This Virtual Sensor will now offer Tiles of type Switch and type Contact Sensor.