Page 1 of 1

Devices: mass set used/unused or option for MQTT Discovery auto-used

Posted: Tuesday 03 October 2023 23:14
by saper2
Hi,

I just added to hardware MQTT Autodiscovery and.. Now I have to set over 130 new devices to unused :evil:

So I have maybe even 2 separate feature-requsts (should I bring this up on github in issues?):
  1. Add to MQTT Auto Discovery Client Gateway option to not add automatically everything discovered.
  2. Allow for selected (checked) devices to mass change Used/unused (or at least to allow for them to be set to Unused)

Sorry if I duplicated some feature-request.

--edit--
Ad.1 - I managed to set all to unused devices that was added by discovery using dev console in browser using this 'one-liner':

Code: Select all

for(var i=<start-idx>;i<=<end-idx>;i++) { $.get('http://<domoticz-ip>:8080/json.htm?idx='+i+'&maindeviceidx=&name=&param=setdevused&type=command&used=false');}

Re: Devices: mass set used/unused or option for MQTT Discovery auto-used

Posted: Tuesday 05 March 2024 21:16
by roblom
Maybe it it possible to combine this suggestion with the possibility to add devices in mass to a certain room plan also. See here for the full suggestion.

Re: Devices: mass set used/unused or option for MQTT Discovery auto-used

Posted: Tuesday 05 March 2024 21:34
by waltervl
roblom wrote: Tuesday 05 March 2024 21:16 Maybe it it possible to combine this suggestion with the possibility to add devices in mass to a certain room plan also. See here for the full suggestion.
No mass room assignment but this PR to be implemented soon (if approved) will make it easier as you can assign devices from the device edit form https://github.com/domoticz/domoticz/pull/6035