homebridge-sense icon indicating copy to clipboard operation
homebridge-sense copied to clipboard

homebridge-sense 0.2.0 - TypeError: Cannot read property 'value' of undefined

Open URBANsUNITED opened this issue 7 years ago • 22 comments

Hi!

I've just installed homebridge-sense 0.2.0 to my homebridge setup, but it doesn't work. This is the error i'll get:

[2018-1-19 18:43:30] Homebridge is running on port 51826. /usr/local/lib/node_modules/homebridge-sense/lib/sense.js:10 temperature_value = json.temperature.value; ^

TypeError: Cannot read property 'value' of undefined at /usr/local/lib/node_modules/homebridge-sense/lib/sense.js:10:41 at Request._callback (/usr/local/lib/node_modules/homebridge-sense/lib/sense.js:150:12) at Request.self.callback (/usr/local/lib/node_modules/homebridge-sense/node_modules/request/request.js:186:22) at Request.emit (events.js:159:13) at Request. (/usr/local/lib/node_modules/homebridge-sense/node_modules/request/request.js:1163:10) at Request.emit (events.js:159:13) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-sense/node_modules/request/request.js:1085:12) at Object.onceWrapper (events.js:254:19) at IncomingMessage.emit (events.js:164:20) at endReadableNT (_stream_readable.js:1062:12)

npm 5.6.0 node v9.3.0 [email protected]

What could this be?

Thanks URBANsUNITED

URBANsUNITED avatar Jan 19 '18 17:01 URBANsUNITED

Hm, not really sure. Perhaps @kcharwood has an idea what this could be. Perhaps he could let you know which versions of npm/node/homebridge he's running.

luc-ass avatar Jan 20 '18 13:01 luc-ass

Hm, now mine isn't working as well. I'll have to dive deeper into it. -

luc-ass avatar Jan 26 '18 05:01 luc-ass

Thanks for letting me know! Let's call it some kind of progress... Even it's a sh*t situation for you. Thanks in advance.

URBANsUNITED avatar Jan 26 '18 06:01 URBANsUNITED

You have probably heard that hello.IS is shutting down its operations. As of now I cannot connect to my sense device via their own app so it is probably not a fault on our plugin side, more likely that it’s a problem of the server operations.

Let me know whether you are able to connect to their server/your data via the Sense app.

Am 26.01.2018 um 07:48 schrieb URBANsUNITED [email protected]:

Thanks for letting me know! Let's call it some kind of progress... Even it's a sh*t situation for you. Thanks in advance.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

luc-ass avatar Jan 26 '18 06:01 luc-ass

Realy? No I haven't heard off. Oh it's a shame. I like the devices. My app on the iPhone works without any issues even outside my wifi area.

URBANsUNITED avatar Jan 26 '18 07:01 URBANsUNITED

@URBANsUNITED your app still works? mine is stating: "There was a problem displaying your sensor data. please try again." on about every screen :(

MrTeal avatar Jan 26 '18 14:01 MrTeal

Looks like something has happened to their servers... Their website is offline with an error (Service Unavailable: Back-end server is at capacity) which seems odd.

I'm thinking this is the end of sense :(

gcordalis avatar Jan 28 '18 08:01 gcordalis

that's too bad :( Hopefully this project takes off so we can still use the hardware: https://github.com/0ff/long-live-sense

MrTeal avatar Jan 29 '18 10:01 MrTeal

Sorry, for the maybe misunderstanding from my side. I am using the sen.se thermopeanuts which I wanted to interact with homekit/homebridge. They work without any issues in my network and app. You use the mother, right?

URBANsUNITED avatar Jan 29 '18 15:01 URBANsUNITED

This is a totally different device. It has nothin to do with the Hello Sense Sleep tracker this plugin is for.

luc-ass avatar Jan 29 '18 15:01 luc-ass

@MrTeal Sadly that project hasn't had anything done since the announcement. I think we're sweet out of luck with sense. Time to find a replacement.

gcordalis avatar Jan 30 '18 00:01 gcordalis

Looks like they’ve released their source code: https://github.com/hello

gcordalis avatar Jan 30 '18 09:01 gcordalis

ah nice! so there's hope now :-) i'm no programmer so I kinda depend on the community here..

MrTeal avatar Jan 30 '18 09:01 MrTeal

Well, the question is wether the device can be accessed locally... would be great!

luc-ass avatar Jan 30 '18 09:01 luc-ass

Indeed! so we can upgrade it to make it look at your own server instead of Sense's server.

MrTeal avatar Jan 30 '18 09:01 MrTeal

Reading through all their code now. If I find anything useful I’ll let you know :)

gcordalis avatar Jan 30 '18 09:01 gcordalis

Thanks alot! :D

MrTeal avatar Jan 30 '18 09:01 MrTeal

Any progress finding out how to get your own instance of the Sense server running?

rchatham avatar Apr 13 '18 19:04 rchatham

Hit a road block - running the server is the 'easy' part. Getting the sense to speak to the custom server is where it gets very tricky. Unlikely that anything will come of it unless someone can take control of the Hello domain.

gcordalis avatar Jul 12 '18 04:07 gcordalis

I will have to look into the config of my switch and firewall wether I can reroute traffic ...

luc-ass avatar Jul 12 '18 04:07 luc-ass

Perhaps something like plexconnect would work

luc-ass avatar Jul 12 '18 06:07 luc-ass

Last I checked traffic is over SSL so the server end will need a valid cert for the Hello domain.

I'd thought about changing DNS as well but sadly I don't think it'll do the trick.

gcordalis avatar Jul 13 '18 01:07 gcordalis