We have moved at community.getvera.com

Author Topic: Keep outlet on  (Read 779 times)

Offline goltoof

  • Sr. Newbie
  • *
  • Posts: 38
  • Karma: +0/-0
Keep outlet on
« on: October 13, 2015, 03:23:27 pm »
I have a monitoring on/off outlet.  It would be very bad if this unit every turned off but the button is staring me in the face in Vera.  I'd like to remove the option to turn it off, or make it much harder to do so.

Offline mht

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +2/-1
Re: Keep outlet on
« Reply #1 on: October 14, 2015, 03:43:14 pm »
You can put this in lua startup code (Apps, Develop apps, Edut startup lua):
Code: [Select]
luup.attr_set("invisible","1",40)
Replace 40 with your deviceID. This will hide your device from the user interface.

Offline Slartibartfast

  • Hero Member
  • *****
  • Posts: 856
  • Karma: +378/-367
Re: Keep outlet on
« Reply #2 on: October 14, 2015, 04:06:43 pm »
@goltoof
If you set invisible as suggested above you can set a scene to alert you to the switch being off so you won't lose the monitoring facility.
Devon UK 240V 50Hz
Now on Homeseer