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

SmartHome device no longer found #36

Closed
bernd70 opened this issue May 22, 2019 · 11 comments
Closed

SmartHome device no longer found #36

bernd70 opened this issue May 22, 2019 · 11 comments
Labels
question Further information is requested

Comments

@bernd70
Copy link

bernd70 commented May 22, 2019

After updating to v4.x a SmartHome device (Fritz!Dect outlet) connected to the FritzBox is no longer avaiable.

The FritzBox itself is found.

In my configuration I added:

"smarthome": {
"Espressomaschine": {
"active": true,
"devtype": "switch",
"ain": "",
"tempSensor": true,
"unit": "celsius"
}
},

I tried "type": "switch" and "devtype": "switch"; found both in the documentation.
I tried with an without the "active" tag.

I use the oznu/homebridge docker image, the homebridge version is 0.4.49.

With 3.x I was able to use the outlet as expected.

Any idea how to analyze this further?

Regards
Bernd

@seydx
Copy link
Owner

seydx commented May 22, 2019

U need the active tag setted to true and devType

Can u set debug to true and post your log pls

@bernd70
Copy link
Author

bernd70 commented May 22, 2019

Here you go:

[5/22/2019, 8:54:19 PM] [FritzPlatform] Initializing FritzPlatform platform...
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] **************************************************************
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] FritzPlatform v4.0.6 by SeydX
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] GitHub: https://github.com/SeydX/homebridge-fritz-platform
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] Email: seyd55@outlook.de
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] **************************************************************
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] start success...
[5/22/2019, 8:54:19 PM] Loading 1 accessories...
[5/22/2019, 8:54:19 PM] [Wohnzimmer] Initializing Sonos accessory...
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] Auto Device Search is disabled, looking for devices in config.json..
2019-05-22T20:54:19.585Z FritzPlatform Found following devices:
2019-05-22T20:54:19.592Z FritzPlatform [ { name: 'Fritz!Box',
address: '192.168.178.1',
port: 49000,
location: 'http://192.168.178.1:49000/tr64desc.xml',
serial: 'FB-1921681781' } ]
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] Initializing config...
2019-05-22T20:54:19.606Z FritzPlatform Initializing extra accessories...
2019-05-22T20:54:19.606Z FritzPlatform Initializing extras...
2019-05-22T20:54:19.607Z FritzPlatform Initializing telegram...
2019-05-22T20:54:19.607Z FritzPlatform Initializing callmonitor...
2019-05-22T20:54:19.607Z FritzPlatform Generating config...
2019-05-22T20:54:19.654Z FritzPlatform Config.json loaded!
2019-05-22T20:54:19.654Z FritzPlatform Writing new parameter into config.json...
2019-05-22T20:54:19.660Z FritzPlatform Config.json refreshed!
2019-05-22T20:54:19.660Z FritzPlatform {
"platform": "config",
"name": "Config",
"port": 8080,
"auth": "form",
"theme": "blue-grey",
"tempUnits": "c",
"sudo": false,
"log": {
"method": "file",
"path": "/homebridge/logs/homebridge.log"
},
"ssl": {
"cert": "/homebridge/cert/homebridge.crt",
"key": "/homebridge/cert/homebridge.key"
}
}
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] Found 0 active devices...
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] Please check your config.json and activate the device(s) you want to see in HomeKit.
[5/22/2019, 8:54:19 PM] [FritzPlatform] [INFO] Please also set up username, password, type and master for your 'device(s)' and restart homebridge!
[5/22/2019, 8:54:19 PM] [FritzPlatform] [WARN] Removing all devices from HomeKit and cache!
[5/22/2019, 8:54:19 PM] [FritzPlatform] [WARN] Removing accessory: Fritz!Box. No longer configured.

The last lines do not sound promising :-)

But what do I do?

@seydx
Copy link
Owner

seydx commented May 22, 2019

hm the plugin removed the config from FritzPlatform?

@bernd70
Copy link
Author

bernd70 commented May 22, 2019

It did from time to time but right now it remains in the config.
Both the FritzBox device entry and the smarthome entry.

What abount the follogin options:

  • disableAutoSearch: true
  • clearCache: false
  • disableAutoConfig: false

Are these correct?

@seydx
Copy link
Owner

seydx commented May 23, 2019

If u have not any problems with auto search i would recommend to turn off ‚disableAutoSearch‘

So:

disableAutoSearch: false
clearCache: false
disableAutoConfig: false

@bernd70
Copy link
Author

bernd70 commented May 23, 2019

disableAutoSearch: false lead to removing the FritBox from the devices.

Any more ideas or directions how to analyze?

@seydx
Copy link
Owner

seydx commented May 23, 2019

@bernd70

can u post your whole config here pls

@seydx seydx added the question Further information is requested label May 23, 2019
@bernd70
Copy link
Author

bernd70 commented May 23, 2019

Here you go:

{
"platform": "FritzPlatform",
"disableAutoSearch": true,
"devices": {
"Fritz!Box": {
"active": false,
"host": "192.168.178.1",
"port": 49000,
"username": "homebridge",
"password": "[omitted]",
"type": "cable",
"master": "true",
"mesh": false,
"readOnly": false,
"options": {
"wifi2": [
false,
false
],
"wifi5": [
false,
false
],
"wifiGuest": [
false,
false
],
"wps": [
false,
false
],
"led": [
false,
false
],
"reconnect": false
}
}
},
"smarthome": {
"Espressomaschine": {
"active": true,
"devtype": "switch",
"ain": "[omitted]",
"tempSensor": true,
"unit": "celsius"
}
},
"callmonitor": {
"active": false,
"ip": "0.0.0.0",
"port": 1012,
"country": "",
"incomingTo": [],
"outgoingFrom": []
},
"presence": {
"user": [
{
"active": false,
"name": "Test User",
"address": "0.0.0.0"
}
],
"anyone": false,
"offDelay": 90,
"onDelay": 15
},
"wol": [
{
"active": false,
"name": "Test Device",
"address": "00:00:00:00:00:00"
}
],
"alarm": {
"active": false,
"telNr": "",
"duration": 30
},
"wakeup": {
"active": false,
"internNr": "",
"duration": 30
},
"ringlock": {
"active": false,
"DECTphones": 1,
"start": "11:00",
"end": "22:00"
},
"broadband": {
"active": false,
"measureTime": 5
},
"extReboot": {
"active": false,
"cmdOn": "",
"cmdOff": ""
},
"telegram": {
"active": false,
"token": "",
"chatID": "",
"presence": {
"in": "",
"out": "",
"anyoneIn": "",
"anyoneOut": ""
},
"callmonitor": {
"incoming": "",
"disconnected": ""
},
"alarm": {
"activated": "",
"deactivated": ""
},
"extReboot": {
"start": "",
"finish": ""
}
},
"polling": 10,
"timeout": 10,
"clearCache": false,
"debug": true,
"disableAutoConfig": false
}

@seydx
Copy link
Owner

seydx commented May 24, 2019

@bernd70

in smarthome devtype need to be called "devType"

and the unit can be removed from config.json

if you want to see the fritzbox in your config.json you need to activate it >> "active": true

@bernd70
Copy link
Author

bernd70 commented May 24, 2019

Didn't expect the tags to be case sensitive. That solved it.
Remove the unit as well.
I do know about the active flag in the FritBox section but I actually do not need to see it in HomeKit.

Thank you for your support.

@seydx
Copy link
Owner

seydx commented May 24, 2019

Allright, happy to solve this issue

Closing

@seydx seydx closed this as completed May 24, 2019
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

2 participants