Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadband Value NaN #160

Closed
Docjones opened this issue Mar 1, 2021 · 21 comments
Closed

Broadband Value NaN #160

Docjones opened this issue Mar 1, 2021 · 21 comments
Labels
question Further information is requested

Comments

@Docjones
Copy link

Docjones commented Mar 1, 2021

Hello,

i received the v7.20 Fritz!OS within the last few days. After i activated the broadband characteristic, i start to get the following warning in the log:

[01/03/2021, 08:58:05] [homebridge-fritz-platform] This plugin generated a warning from the characteristic 'Download': characteristic was expected valid number and received NaN. See https://git.io/JtMGR for more info.
[01/03/2021, 08:58:05] [homebridge-fritz-platform] This plugin generated a warning from the characteristic 'Upload': characteristic was expected valid number and received NaN. See https://git.io/JtMGR for more info.
[01/03/2021, 08:58:25] [homebridge-fritz-platform] This plugin generated a warning from the characteristic 'Download': characteristic was expected valid number and received NaN. See https://git.io/JtMGR for more info.
[01/03/2021, 08:58:25] [homebridge-fritz-platform] This plugin generated a warning from the characteristic 'Upload': characteristic was expected valid number and received NaN. See https://git.io/JtMGR for more info.

It's a Fritzbox 6490 Cable - PluginVersion is 5.0.25.

The Characteristics does not show up in Eve

Here is part of the configuration:

"ssl": true,
"tr064": true,
"igd": true,
"master": true,
"readOnly": false,
"hide": false,
"connection": "cable",
"options": {
           "broadband": "characteristic"
}
@Docjones Docjones changed the title Braodband Value NaN Broadband Value NaN Mar 1, 2021
@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

Additional Question: Is there a possibility to setup the check interval for broadband?

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

@Docjones

broadband will only be checked if you open an app to see download/upload values

can u do following steps pls:

  • Enable debug in config
  • Open app to check download/upload values
  • Post the whole log

@seydx seydx added the bug Something isn't working label Mar 1, 2021
@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

As stated above: The Characteristics does not show up in Eve.

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

... apparently, the callmonitor characteristic is missing, too...? Any relation?

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

@Docjones

Callmonitor is not a characteristic, its an contact accessory

To fix broadband for you, i need the whole log (with debug enabled). Its not necessary that the values are shown in eve

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

@Docjones

ahh wait. You missed a info in the changelog

https://github.com/SeydX/homebridge-fritz-platform/blob/master/CHANGELOG.md#v5024---2020-02-28

If you have "Broadband" active you have to deactivate it after the update, restart HB and reactivate "Broadband" !

@seydx seydx added question Further information is requested and removed bug Something isn't working labels Mar 1, 2021
@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

Ah - ok. I think i jumped from 5.0.23 -> 5.0.25 and did not get the changelog from 5.0.24 presented. Or i simply skipped it.

Broadband shows up now, but with 0,0 in up- and download, as well as the above shown warning ("... NaN ...") in the log perists. Debug reveals no additional info:

[01/03/2021, 10:25:18] [FritzPlatform] Fritz!Box: Polling state (router)...
[01/03/2021, 10:25:18] [FritzPlatform] Fritz!Box: {"NewEnable":"1","NewConnectionStatus":"Connected","NewPossibleConnectionTypes":"IP_Routed, IP_Bridged","NewConnectionType":"IP_Routed","NewName":"internet","NewUptime":"126820","NewLastConnectionError":"ERROR_NONE","NewRSIPAvailable":"0","NewNATEnabled":"1","NewExternalIPAddress":"2a02:810d:8000:49:c0da:2aee:dfbe:451b","NewDNSServers":"2a02:8100:c0:2c1::4:1101, 2a02:8100:c0:2c9::4:1101","NewMACAddress":"E0:28:6D:41:CC:3C","NewConnectionTrigger":"OnDemand","NewRouteProtocolRx":"Off","NewDNSEnabled":"1","NewDNSOverrideAllowed":"1"}
[01/03/2021, 10:25:19] [FritzPlatform] Marc: Polling state (presence)...
.... [Presence output ommited]
[01/03/2021, 10:25:39] [FritzPlatform] Fritz!Box: Identify requested. <-- clicked ID in eve

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

Broadband shows up now, but with 0,0 in up- and download, as well as the above shown warning ("... NaN ...")

Hm it seems that the characteristic not removed correctly

do following steps

  • Change broadband to „none“ in config
  • Restart homebridge
  • Be sure that download/upload are removed as characteristics
  • Change broadband to „characteristic“ again
  • Check download/uplof again

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

  • Change broadband to „none“ in config
  • Restart homebridge
  • Be sure that download/upload are removed as characteristics
  • Change broadband to „characteristic“ again
  • Check download/uplof again

they are note being removed in eve-app. Restartet the app , updated the device, identified the device multiple times. Upload/Download characteristic stays 0,0 and does not vanish

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

Hmm

Is there something similar to this in log after removing it?

[1.3.2021, 10:49:03] [FritzPlatform] FritzBox 7590: Removing Download characteristic
[1.3.2021, 10:49:03] [FritzPlatform] FritzBox 7590: Removing Upload characteristic

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

No, no trace detected (i grepped the whole log for upload/download/remove in case insensitive mode)

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

@Docjones

can u post your config.json pls

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

ofc - here it comes:

{
            "name": "FritzPlatform",
            "debug": true,
            "devices": [
                {
                    "name": "Fritz!Box",
                    "host": "192.168.x.y",
                    "username": "xxxx",
                    "password": "xxxx",
                    "ssl": true,
                    "tr064": true,
                    "igd": true,
                    "master": true,
                    "readOnly": false,
                    "hide": false,
                    "connection": "cable"
                }
            ],
            "presence": [
                {
                    "active": true,
                    "name": "p1",
                    "address": "xxxx",
                    "accType": "occupancy",
                    "ping": true
                },
                {
                    "active": true,
                    "name": "p2",
                    "address": "xxxx",
                    "accType": "occupancy",
                    "ping": false
                },
                {
                    "active": true,
                    "blockTelegram": false,
                    "name": "p3",
                    "address": "xxxx",
                    "accType": "occupancy",
                    "ping": false
                },
                {
                    "active": true,
                    "name": "p4",
                    "address": "xxxx",
                    "accType": "occupancy",
                    "ping": false
                }
            ],
            "callmonitor": {
                "active": true,
                "group": true,
                "ip": "192.168.x,y",
                "port": 1012,
                "countryPrefix": "xxxx",
                "cityPrefix": "yyyyy",
                "incomingTo": [
                    "zzzz"
                ],
                "outgoingFrom": [
                    "zzzz"
                ]
            },
            "extras": {
                "alarm": {
                    "active": false
                },
                "wakeup": {
                    "active": false
                },
                "ringlock": {
                    "active": false
                },
                "phoneBook": {
                    "active": true,
                    "accType": "switch"
                }
            },
            "options": {
                "polling": {
                    "timer": 60
                }
            },
            "telegram": {
                "active": false
            },
            "platform": "FritzPlatform"
        },

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

Not sure if ssl, tr064 and igd are correctly set for my Fritz!OS v7.20. turned them on after the update from previous Fritz!OS version

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

@Docjones

and with this config u have still download/upload in eve?

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

image

@seydx
Copy link
Owner

seydx commented Mar 1, 2021

@Docjones

can u remove the plugin from your config and apple home pls

after restarting hb, copy paste your fritz platform config in your config.json again and let homebridge re add it to your apple home

@Docjones
Copy link
Author

Docjones commented Mar 1, 2021

Getting this:

[01/03/2021, 21:55:15] [FritzPlatform] Fritz!Box: Getting state (broadband)...
[01/03/2021, 21:55:15] [FritzPlatform] Fritz!Box PhoneBook: Getting state (phoneBook)...
[01/03/2021, 21:55:19] [FritzPlatform] Fritz!Box: {"txt":"verbunden","led":"led_green","title":"Kabel","up":"↑ 13,6 Mbit/s","down":"↓ 230 Mbit/s","link":"docOv"}
[01/03/2021, 21:55:19] [homebridge-fritz-platform] This plugin generated a warning from the characteristic 'Download': characteristic was expected valid number and received NaN. See https://git.io/JtMGR for more info.
[01/03/2021, 21:55:19] [homebridge-fritz-platform] This plugin generated a warning from the characteristic 'Upload': characteristic was expected valid number and received NaN. See https://git.io/JtMGR for more info.

There is something happening ("Getting state (broadband)". But the values in eve stay at 0.0

@Christian-CFP
Copy link

Christian-CFP commented Mar 2, 2021

Here some other log:

2.3.2021, 06:29:05 [HOOBS-Server 6A21@Fritz!Box 7590@Fritz!Box 7590@Download] characteristic was expected valid number and received NaN
2.3.2021, 06:29:05 [HOOBS-Server 6A21@Fritz!Box 7590@Fritz!Box 7590@Upload] characteristic was expected valid number and received NaN

Just updated HOOBS to 3.3.3 (Update was related to update Homebridge to 1.3.1)
Since then this. But the Up and Down in eve shows correct values.

Fritz 7.24
now 7.25 (same log)

@Docjones
Copy link
Author

Docjones commented Mar 6, 2021

After removal and re adding the fb config, I am getting this:

image

Thats the correct max value. Can I trigger measurement?

@seydx
Copy link
Owner

seydx commented Mar 6, 2021

@Docjones

No, this is not supported

@seydx seydx closed this as completed Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants