andig / pimatic-fritz

Pimatic plugin for Fritz!Box SmartHome and FritzDect!200 Node
GNU General Public License v2.0
8 stars 6 forks source link

FritzWlan doesn't work #36

Closed thost96 closed 7 years ago

thost96 commented 7 years ago

Hi, after upgrading pimatic-fritz to version 0.5.4 today, the FritzWlan Class device doesn't display the switch and the wifi information anymore. Only the device name is shown corretly.

with version 0.5.3 it works fine.

andig commented 7 years ago

Then it must be the difference between fritzapi 0.8 and 0.9.2. Could you check with a small test program which version introduced the breaking change for you?

andig commented 7 years ago

Also: are you accessing your fb over https? If yes- using a "real" certificate?

Could you check if changing line 18 like this fixes the problem for you:


var request = require('request').defaults({ strictSSL: false }); // be less strict about SSL errors
ikewestbrook commented 7 years ago

same here! where do these changes need to be applied? by the way, i get error message: error [pimatic]: unexpected newline

andig commented 7 years ago

same here! where do these changes need to be applied?

This would need to go to node_modules/fritzapi/index.js

by the way, i get error message: error [pimatic]: unexpected newline

I would need more details- and a new issue please

leader21 commented 7 years ago

i wasn't able to switch my dect200 plug. there has been an error with the indention. the pluginwas not able to compile after the update. with the simple fix it should wok again. check my pull request https://github.com/andig/pimatic-fritz/pull/38 and my issue andig/pimatic-fritz#37

andig commented 7 years ago

Released 0.5.5. If this is not working please test the suggestion above for ssl security and let me know.

thost96 commented 7 years ago

Sorry for my delayed feedback. I'm not using https and with pimatic-fritz version 0.5.5 it's working again.