Author Topic: Disabling/removing "extra" devices?  (Read 1122 times)

Offline tunnus

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
Disabling/removing "extra" devices?
« on: October 13, 2016, 09:39:49 am »
I only need (current) temperature device. Is it possible to disable/delete other devices (e.g. humidity)? If I try to use Vera's "delete device" functionality, devices are removed but are later regenerated.

I have Vera Edge with the latest firmware, UI7, and plugin version 1.58

Offline akbooer

  • Master Member
  • *******
  • Posts: 6123
  • Karma: +274/-69
  • "Less is more"
Re: Disabling/removing "extra" devices?
« Reply #1 on: October 13, 2016, 10:22:28 am »
I think that the best you can do is simply hide those devices which are of no interest.  Being child devices of the weather plugin, they are not consuming significant resources.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline tunnus

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
Re: Disabling/removing "extra" devices?
« Reply #2 on: October 17, 2016, 08:01:25 am »
Ok, I wasn't worried about resource comsumption, but those extra devices are clogging UI. So how do you hide a device?

Offline akbooer

  • Master Member
  • *******
  • Posts: 6123
  • Karma: +274/-69
  • "Less is more"
Re: Disabling/removing "extra" devices?
« Reply #3 on: October 17, 2016, 08:16:03 am »
Ok, I wasn't worried about resource comsumption, but those extra devices are clogging UI. So how do you hide a device?

I don't use UI5/7 these days, so I don't know if there's an easier way, but it's a simple one-liner to run in the Lua Test window.

Code: [Select]
luup.attr_set ("invisible", 1, deviceNo)

3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline tunnus

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
Re: Disabling/removing "extra" devices?
« Reply #4 on: October 17, 2016, 08:44:08 am »
I think I'll try to run that lua command, but before that, there seems to be a disable option in device's advanced settings (see attachment), would that work?

Offline akbooer

  • Master Member
  • *******
  • Posts: 6123
  • Karma: +274/-69
  • "Less is more"
Re: Disabling/removing "extra" devices?
« Reply #5 on: October 17, 2016, 09:29:09 am »
No.  disable is not the same thing... its purpose is to disable plugins.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.