Closed MiG-41 closed 2 months ago
I will try to pull initial configuration in the configure menu of integration so that refresh time can be changed. Stopping the integration by switch isnt kind a right way, i can only try to add some kind of service mode switch which can temoprary stop refreshing of data. This router firmwares dont have multiple user mode or api so that integration cannot work without logging out user who is tryin to log in to web interface.
Looks like integration reads data every 30s. Perhaps that is to often ? 1 min should be sufficent.
Delete integration and re add it and put time for data fetch and sms higher
I double this two times , for 200 and 400s , but still integration reads every 30s.... I can see it on entity "Monthly Time" , with updates every 30s...
I release a new build with timer treshold fix, and configure functionality on integration, test it when you can.
I put new ping value to 200s ( i removed completly integration first) , and it started updating "Monthly Time" something like 3min 30s , so seems this is fixed now. Also button for Configuration apear now ,however it is not possible to put there new values. Tried to change this to 60 , to 100 , it says that it is saved succesfully , however nothing really changed, when you go once again for configuration there is previous 200 all the time. Restarting HA also don't help , cleaning cache of browser as well...
Oh dam, i will check it maybe i forgot to populate configuration entry to make succesfull save :)
Now it should be ok.
Not really :) In v1.0.20 konfiguration is updating/chaanging , but integration use permanently initial datas , don't care about new values.... Initially set to 60s and that was the time of update entity "Monthly Time" , no matter if in configuration i changed Ping Interval to 30s or to 300s. I also restarted HA , real time of reading still is 60s.
I have tested this on my two routers and time treshold now is working fine so closing the issue
For me partially working , since it is not possible to reconfigure it in config . Time is taking from initial ping time , and any correction in Configure not giving any effect...
Did you remove integration and add it again ? I have done it a lot of times trough hacs and manualy and all is working for me, changing config etc…
Changing configuration works , but the problem is ,that integration not use new/reconfigured time.
I.e. After complete remove of integration , i put Ping Time 60s. And then each entity is updating ~60s ( to be precise + 2s but it is not important). Then , when i reconfigure and change the ping time to 30s or 100s configuration accepting this , shows new values when i enter again to Reconfiguration window , but it is still using 60s time for updating. Restart HA also not helps.
And yes , i verified it again , completly removed integration , restarted , and installed from HACS again , same situation , ping time can't be reconfigured ( or can be , but it uses still initial value) .
Is Reconfiguration at your side works in a way , that integration uses new ping times ?
I will try to test that today and i will let you know, i did put higher times 300for sensors and 350 for sms and that is working fine.
Did you veryfied it ? I tested on version 1.0.23 ,and same story , reconfigured time is not considered ,only initialPing time. I can set also higher values , and nothing changes...
When integration works on default settings , changing to "normal web" is very annoing becouse of constant logouts. You have to be very fast ,but sometimes i can't manage i.e. to select all Bands and Set them.... Even when default value is 100s ,this logouts are much faster.... Stop integration works , but disabling it manualy takes also some time ... Perhaps it is somehow possible to have switch for it ? How to change default values ( time , password ), by editing file ?