We have moved at community.getvera.com

Author Topic: Removing Child Devices  (Read 259 times)

Offline Nobber

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Removing Child Devices
« on: January 31, 2019, 03:55:47 pm »
Hello trying to remove a child device with the following in start up lua

luup.attr_set("invisible","",<device>)

Doesn't seem to work, can anyone help please

Thanks

Offline rigpapa

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1121
  • Karma: +187/-3
Re: Removing Child Devices
« Reply #1 on: January 31, 2019, 03:57:29 pm »
Hello trying to remove a child device with the following in start up lua

luup.attr_set("invisible","",<device>)

Doesn't seem to work, can anyone help please

Thanks

Making it invisible won't "remove" a device, at least, not in the "delete" sense. If you're just trying to hide it in the UI, you're on the right track, but your second argument needs to be a "1":

Code: [Select]
luup.attr_set( "invisible", "1", devNum )
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3, Lite. Hassio, Slapdash.

Offline Nobber

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Re: Removing Child Devices
« Reply #2 on: January 31, 2019, 05:09:12 pm »
ok thank you