Tasmoadmin: Feature request: clear all (list)

Created on 28 Jun 2018  路  8Comments  路  Source: reloxx13/TasmoAdmin

Hello!

First of all: great tool! I love using TasmoAdmin, thanks for all your effort!

I would like to suggest a possible new feature/enhancement: add a "Clear List" button. Sometimes, when we restart the router, DHCP leases drops the current Sonoff IP address, messing everything up on the previous auto discovered list. Some devices are unavailble and some other, when clicked to view the native web ui (TASMOTA), redirects to the wrong device. If there is a possibility to clear all devices on the list so we can auto scan again se we can access the correct sonoff device.

Thanks again!

TODO

All 8 comments

heya, would you frist try mdns name?

http://sonoffname.local/

instead of the ip.

you should reserve the ip to the device.
this is a option in many routers nowadays.

if you canot find it, search your router + dhcp reservation

Hello @reloxx13! Thanks for your reply.

I have disabled mdns on all my Tasmota devices due to instabilities on my network, as advised on a Issue post on main Git...

https://github.com/arendst/Sonoff-Tasmota/issues/580#issuecomment-313710290

Also, reserving IPs on most routers have a limit. I am using the Asus RT-AC68U and just a month a go received a firmware update to reserve more than 32 IPS, now I can reserve up to 64.

Still, I have about 78 devices connected on my network (34 sonoffs) and I don't see the need of reserving every sonoff device I have connect, since MQTT topics are all I need to get the online status and control the device.

I really don't care about the ID and order of all sonoffs on the list. A "clear all" might be a very useful tool to scan all devices again and start from scratch.

I believe that a filter and sort functions might be under development, I think I read it somewhere here, so ordering by name or IP (and filtering by version, status, signal strength, and so on...) should fulfill all needs!

Thanks again for all your work here!

@reloxx13 One of the nice things about MQTT devices is that they do not need static IPs, they just need to be pointed at the broker. I too have dozens of Tasmota devices and I do not want to bother with reserving IP addresses

It would be nice if devices were identified by their MAC address or some other unique identifier and not the IP address. Then network changes or DHCP leases wouldn't affect TasmoAdmin. If this is not possible a 'Clear All' feature would be welcome - as it is now I have to delete all my devices individually and then rescan to get the correct names.

I will try the mdns as you suggest and see if that works, thanks for suggestion.

heya,

i understand your point and the advantage of mqtt for not using static ips. but this project target was to help user without mqtt.

i dont know any way to find devices with php by the mac address, im sure there are ways, but this would take a loooong time to scan.

would be sth like:
scan all ips, to every found ip send a status command request, if i get a status response, its a tasmota device, get the mac from and the new ip, save the new ip (also every save is a bad save for a raspberry with a sd card).

just my fast thoughts about it for now.

I can imagine that...

Meanwhile, a clear all button would help a lot!

Sorry, I am not a coder so I am not sure how time consuming this feature would be do develop...

Thanks a lot @reloxx13 ! Great job here! Cheers!

PLease don't over complicate things, just a simple 'remove all devices' button on the settings page would be all that's required.

As a work around I have a scheduled job that just deletes devices.csv daily.

look at this for now:
https://github.com/reloxx13/TasmoAdmin/wiki/FAQ#freeup-disk-space

added it yesterday

i thought about a cron, but for now this will be insecure cuz anyone in your network or even from outside could delete your devices or config. you cannot be logged by cron or you have to add your login creds in the cron line. ill think over it.

this could easily added to a button now.

I have an 'on machine' cron to directly delete the file :
rm /var/www/data/devices.csv

No webserver or network involved. Anyway this point is mute now that we have a url and forthcoming button :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ascillato picture ascillato  路  7Comments

arendst picture arendst  路  8Comments

eeprom23 picture eeprom23  路  5Comments

MaxBec picture MaxBec  路  5Comments

jascdk picture jascdk  路  6Comments