Comments (10)
@gruberth
Bugfix PR has been merged to develop.
Issue can be closed
from plugins.
@gruberth
The Plugin handles the avm_wlan_index '(1: 2.4Ghz, 2: 5Ghz, 3: Gaeste)' as written in the plugin.yaml.
The AVM API uses index 0, 1, 2. That's why the read avm_wlan_index is reduced by 1 to match the API.
So in my opinion the current code is correct.
from plugins.
I don't know what you mean by 'read avm_wlan_index'. This is not the read part of settings, its the write wlan settings to the device method.
As far as I saw, the original code uses the decremented index 0,1,2 for the writing part using the self.set_wlanconfig(...) method and the index of the plugin 1,2,3 for the reading part used in the self._update_wlan_config(...) method. So something weird must be going on between writing and reading the wlan settings.
The code form above was my solution without going to much into detail. But since I changed this section in the plugin code I had no troubles on both of my devices anymore. Writing and reading the state of the indexed wifi works great.
Btw I am using a Fritz!Box 5490 with the actual Fritz!OS 07.29 and a Fritz!Repeater 2400 with the same Fritz!OS 07.29.
from plugins.
@gruberth
Ok, Which version are you using (master / develop)?
from plugins.
For testing I tried both. But now I am using the master version.
from plugins.
I'm working on further update / bugfixing which is close to be ready.
Could you try the upcoming version 1.6.7. which is here: https://github.com/sisamiwe/shng-avm-plugin
If the reported issue is solved, this will be the next develop release.
from plugins.
I have the same problem on your newest version.
When I send False to the item with the avm_wlan_index@fritzbox_5490 : 2
attribute it shuts the 2,4 GHz wifi off. For a couple of minutes this item is also False, until it gets an update form the device (here by the 5Ghz wifi setting, wich has never been turned off) and writes in this 5 GHz item True again. Same problem on the repeater. I use to check the state of the wifi the settings webinterface of the router/repeater. Despite the wrong behavior there is no warning or error in SHNG and the log.
For me its quite obvious that the write wlan_index is wrong, or/and there is a problem between writing and reading the wlan settings.
Here is a log where I set the item of the 5Ghz wifi from the repeater to False. But it really turned of the 2,4GHz and after these 3 minutes the item System.Avm.repeater1.wlan.wlan_5
was back on True again but the 2,4 GHz wifi on the device stayed off.
2022-04-19 17:31:51 INFO modules.admin.systemdata item_change_value_html: item 'System.Avm.repeater1.wlan.wlan_5' set to value 'false'
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Starting update loop for instance repeater_2400_1
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Request Update for System.Avm.repeater1.uptime
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Sending POST request successful
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Request Update for System.Avm.repeater1.serial_number
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Accessing dev_info response cache for action GetInfo and item System.Avm.repeater1.serial_number!
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Request Update for System.Avm.repeater1.wlan.wlan_24
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Sending POST request successful
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Request Update for System.Avm.repeater1.wlan.wlan_24_ssid
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Accessing wlanconfig response cache for action GetInfo and item System.Avm.repeater1.wlan.wlan_24_ssid!
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Request Update for System.Avm.repeater1.wlan.wlan_5
2022-04-19 17:35:09 DEBUG plugins.avm repeater_2400_1@: Sending POST request successful
The log from the repeater was:
19.04.22 17:31:51 WLAN wurde über die Benutzeroberfläche deaktiviert (2,4 GHz).
The item is defined as the following:
wlan_5:
type: bool
visu_acl: rw
enforce_updates: yes
avm_data_type@repeater_2400_1: wlanconfig
avm_wlan_index@repeater_2400_1: 2
from plugins.
The bug is found!
Please try again the upcoming version which is here: https://github.com/sisamiwe/shng-avm-plugin
from plugins.
@sisamiwe works great!! thanks a lot.
from plugins.
I just created a PR for version 1.6.7 which contains the bugfix
from plugins.
Related Issues (20)
- UZSU plugin: implement holidays and alarm features
- rtr2: can't pass rtr2_settings or rtr2_controller_settings HOT 6
- viessmann: cant parse datetime reply from heater HOT 6
- smartvisu plugin: error reading deprecated.yaml HOT 2
- svNG Plugin join: Missing "say" and "language" commands HOT 3
- svNG plugin harmony: PowerOff handling not correct HOT 2
- svNG plugin harmony: Harmony prefix not registered in plugin.yaml HOT 2
- telegram: Plugin should be improved to use async HOT 2
- database: Increase duration of previous db entry when deleting HOT 2
- database: Plugin does not work with mysql when using a password that starts with numbers HOT 3
- uzsu: Own interpolation code instead of scipy
- database: Verwaiste Datenreihen neu zuordnen
- rtr: Plugin might have issue with newest core changes? Deprecated anyhow? HOT 2
- db_addon: Duplicate values for verbrauch_heute_minus3 and verbrauch_heute_minus2 HOT 10
- influxdb, influxdb2: Add database data retrospectively HOT 4
- sml2 Plugin hat keine auto reconnect Funktion
- ebus: fix version and connect problem HOT 1
- db_addon: sometimes values aren't recalculated
- database: Wrong return value for item.db() function for sparsely filled databases HOT 4
- AttributeError: 'UZSU' object has no attribute '_schedulers' / AttributeError: 'KNX' object has no attribute '_schedulers' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.