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

FP v6.0.19: An error occurred during polling hosts #325

Open
franzose79 opened this issue Oct 5, 2023 · 0 comments
Open

FP v6.0.19: An error occurred during polling hosts #325

franzose79 opened this issue Oct 5, 2023 · 0 comments

Comments

@franzose79
Copy link

franzose79 commented Oct 5, 2023

Was unable to figure out where this presence issue log comes from:

[05/10/2023, 17:52:27] [FritzPlatform] An error occurred during polling hosts!
[05/10/2023, 17:52:27] [FritzPlatform] TypeError: Cannot read property 'type' of undefined
at /usr/local/lib/node_modules/homebridge-fritz-platform/src/accessories/presence/presence.handler.js:304:51
at Array.find ()
at Handler.poll (/usr/local/lib/node_modules/homebridge-fritz-platform/src/accessories/presence/presence.handler.js:303:50)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

homebridge-fritz-platform v6.0.19
OS | Raspbian GNU/Linux Buster (10)
Node.js Version | v14.17.6

My config:

{
"bridge": {
"name": "Homebridge",
"username": "CC:XX:XX:XX:XX:XX",
"manufacturer": "homebridge.io",
"model": "homebridge",
"port": 51826,
"pin": "333-33-333"
},
"description": "Home Smart Home",
"platforms": [
{
"name": "Config",
"port": 8581,
"auth": "form",
"theme": "auto",
"restart": "sudo -n systemctl restart homebridge",
"temp": "/sys/class/thermal/thermal_zone0/temp",
"tempUnits": "c",
"lang": "auto",
"sudo": true,
"log": {
"method": "systemd",
"command": "sudo -n tail -n 100 -f /var/log/homebridge.log"
},
"platform": "config"
},
{
"name": "FritzPlatform",
"debug": false,
"warn": true,
"error": true,
"extendedError": true,
"devices": [
{
"active": true,
"name": "FRITZ!Box 7590 AX",
"host": "192.168.10.1",
"port": 49000,
"username": "dummy",
"password": "dummy",
"ssl": true,
"tr064": true,
"igd": true,
"manufacturer": "AVM",
"model": "7590 AX",
"serialNumber": "895643154",
"wifiUnits": 2,
"master": true,
"readOnly": false,
"hide": true,
"connection": "dsl",
"options": {
"wifi_2ghz": "false",
"wifi_5ghz": "false",
"wifi_guest": "switch",
"wps": "characteristic",
"dect": "false",
"aw": "characteristic",
"deflection": "false",
"led": "false",
"lock": "false",
"broadband": "characteristic"
}
}
],
"presence": [
{
"active": true,
"blockTelegram": false,
"name": "tomtom1",
"address": "DC:XX:XX:XX:XX:XX",
"accType": "occupancy",
"ping": true,
"threshold": 15,
"onDelay": 30,
"offDelay": 90
},
{
"active": true,
"blockTelegram": false,
"name": "tomtom2",
"address": "74:XX:XX:XX:XX:XX",
"accType": "occupancy",
"ping": true,
"threshold": 15,
"onDelay": 30,
"offDelay": 90
}
],
"smarthome": [],
"callmonitor": {
"active": false,
"group": false,
"ip": "192.168.10.1",
"port": 1012,
"countryPrefix": "+49",
"cityPrefix": "000",
"incomingTo": [
"61066657"
],
"outgoingFrom": [
"00000000"
]
},
"extras": {
"alarm": {
"active": false,
"duration": 30,
"accType": "switch"
},
"wakeup": {
"active": false,
"duration": 30,
"internNr": "**620",
"accType": "characteristic"
},
"ringlock": {
"active": false,
"DECTphones": 1,
"start": "11:00",
"end": "22:00",
"accType": "characteristic"
},
"phoneBook": {
"active": false,
"blacklists": [
"Blacklist"
],
"accType": "characteristic"
}
},
"options": {
"presence": {
"anyone": true,
"accType": "occupancy"
},
"reboot": {
"on": "/var/lib/homebridgee/rebootOn.sh",
"off": "/var/lib/homebridge/rebootOff.sh"
},
"polling": {
"timer": 10,
"exclude": [
"router",
"extra"
]
}
},
"telegram": {
"active": false,
"messages": {
"presence": {
"user_in": "Welcome at home @",
"user_out": "Bye Bye @",
"anyone_in": "Someone is at home!",
"anyone_out": "Nobody at home!"
},
"callmonitor": {
"incoming": "Incoming call from @",
"outgoing": "Outgoing call to @",
"disconnected": "Call with @ disconnected"
},
"alarm": {
"activated": "Alarm activated",
"deactivated": "Alarm deactivated"
},
"reboot": {
"start": "@: Offline!",
"finish": "@: Online!"
},
"network": {
"on": "@ is in network!",
"off": "@ not in network!"
}
}
},
"platform": "FritzPlatform"
}
],
"accessories": [],
"id": "config"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant