Tellstick Net <--> Homebridge

Moderator: Telldus

Post Reply
lenjak
Posts: 7
Joined: Fri Mar 17, 2023 9:45 am

Tellstick Net <--> Homebridge

Post by lenjak »

I am new to Linux and very new to Raspberry, so treat me gently :D

On my new Raspberry Pi 3 (jessie) I am trying to install homebridge in order to integrate to Apples homekit
Struggled with CONFIG.JSON for awhile but I "think" it is correct now

However, when starting homebridge I get the following error:

""
[1/6/2017, 10:18:17 AM] Loaded plugin: homebridge-applescript
[1/6/2017, 10:18:18 AM] Registering accessory 'homebridge-applescript.Applescript'
[1/6/2017, 10:18:18 AM] ---
[1/6/2017, 10:18:18 AM] Loaded plugin: homebridge-telldus
[1/6/2017, 10:18:18 AM] Registering platform 'homebridge-telldus.Telldus'
[1/6/2017, 10:18:18 AM] ---
[1/6/2017, 10:18:18 AM] Loaded config.json with 0 accessories and 1 platforms.
[1/6/2017, 10:18:18 AM] ---
[1/6/2017, 10:18:18 AM] Loading 1 platforms...
[1/6/2017, 10:18:18 AM] [Telldus Live!] Initializing Telldus platform...
[1/6/2017, 10:18:18 AM] [Telldus Live!] Loading accessories...
[1/6/2017, 10:18:18 AM] Loading 0 accessories...
[1/6/2017, 10:18:19 AM] [Telldus Live!] undefined
Unhandled rejection (<{"statusCode":401,"data":"{\"error\":\...>, no stack trace)
""
Could it be that Telldus Live! is refusing the connection? "unauthorised"?

Nodejs is the latest, v7.4.0. Is that to new?
The keys from api.telldus.com is inserted into CONFIG.JSON

Have to admitt :-), not 100% sure that config.json are being correct so I add the configuration:

~/.homebridge/config.json
**
{
"bridge":
{ "name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154" },

"description": "LJ Homebridge",

"accessories": [],

"platforms": [
{ "platform": "Telldus",
"name" : "Telldus Live!",
"public_key": "xxx",
"private_key": "xxx",
"token": "xxx",
"token secret": "xxx",
"unknown_accessories": [

{ "id": 13636850,
"model": "selflearning-switch",
"manufacturer": "Nexa",
"name": "LJ-Rum" },

{ "id": 8829256,
"model": "selflearning-dimmer",
"manufacturer": "Nexa",
"name": "Dim1" },

{ "id": 135,
"model": "temperaturehumidity",
"manufacturer": "Proove",
"name": "LJ-Hemma" }

]
}
]
}

""

All ideas on howto fix it or debug it would be appreciated ! But remeber, I am new to this, keep it simple
Pararo
Posts: 9
Joined: Fri Mar 17, 2023 9:45 am

Re: Tellstick Net <--> Homebridge

Post by Pararo »

I'm having the exact same issue - Unhandled rejection (<{"statusCode":401,"data":"{\"error\":\...>, no stack trace).

It works flawlessy on my old Raspberry Pi Model B+ that uses older version of Raspbian and node.js. Anyone else having the same issue or a possible solution?
magner
Posts: 17
Joined: Fri Mar 17, 2023 9:45 am

Re: Tellstick Net <--> Homebridge

Post by magner »

Hi,
I had the same issue, and it solved is self when updating keys and tokens to the ones from api.telldus.com.
(I was using my apps keys...)

Magne Roald
Telldus app: www.magneroald.no/hjemme
lenjak
Posts: 7
Joined: Fri Mar 17, 2023 9:45 am

Re: Tellstick Net <--> Homebridge

Post by lenjak »

Thanx for your input Magne

I did use the keys generated at http://api.telldus.com/keys/index --> "Generate a private token for my user only"

I get the same keys every time I "Generate". Which I guess is fine

Are we talking abou the same keys?

I did reenter the keys but with the same fault
Without config.json, homebridge starts OK. So it appears that it is something within that file

For me this is "winter project", so in the dark, cold November I will dig into problem solving again :D

/Lennart
Post Reply