Has anybody done anything with Sensibo Sky?

If you have a question or need help, this is the place to be.
Post Reply
Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Has anybody done anything with Sensibo Sky?

Post by Mastiff » Mon Jun 26, 2017 1:09 pm

it's a system for controlling heat pumps, and it supposedly has an open API and works with IFTTT. But IFTTT only works with off and on, it doesn't seem to keep track of the current settings and stuff like that, which the app does. So has anybody looked at making a plug-in for that? I am of course totally unable to do something like that... :lol:

User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Has anybody done anything with Sensibo Sky?

Post by yokel22 » Mon Jun 26, 2017 10:19 pm

I couldn't find any heat pumps from sensibo sky, just ac units. Got a link to a heat pump? The api looks like a basic REST(no tokens or such), wouldn't take much to get it working. The end user would likely need to obtain a api key(if you are a registered user of there app, you can get one here: https://home.sensibo.com/login?next=/me/api. This is the link to a sample python client https://github.com/Sensibo/sensibo-python-sdk. Again, i only see references to AC units in the sample code. Maybe i'm looking in the complete wrong place(or they just have documented the heat pump stuff yet).

alonmalka
Posts: 27
Joined: Wed Dec 04, 2013 10:07 am

Re: Has anybody done anything with Sensibo Sky?

Post by alonmalka » Thu Aug 24, 2017 11:07 pm

I am using Sensibo with EG.
Works great.
I will write a guide tomorrow on how to activate and turn off the AC through Sensibo and Eventghost.

Alon

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Sun Oct 08, 2017 4:55 pm

Wow, I didn't know there were answers to this! :o The mail warning hasn't gotten through to me... It would be great to have a guide to that. I haven't yeat bought the Sensibo unit, but if I can be sure it will work with EG, I will have to do that this winter.

Yokel22, maybe it's different versions for different countries? We don't really need AC's here. :mrgreen:

User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Has anybody done anything with Sensibo Sky?

Post by yokel22 » Mon Oct 09, 2017 12:30 am

Yeah, i wasn't totally sure what kind of device you were talking about. My first thought when you said heat pump was some sort of pool heater or hot water tank. After looking at sensibo's site i figured you were talking about a furnace/radiator(what there typically called in the states) device. I'd think they'd still need to add heat stuff for U.S., as half the country is below freezing during winter.

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Fri Feb 02, 2018 1:50 pm

Yokel22, Talk about being slow... But I now have the Sensibo installed, and I have the API key, but I really don't understand how I can use that client code. :oops:

I tried my first attempt, which is always to put it in a Pyton script in EG and run it:

Code: Select all

14:46:20      Traceback (most recent call last):
14:46:20        Python script "248", line 55, in <module>
14:46:20          client.pod_change_ac_state(uid, ac_state, "on", not ac_state['on']) 
14:46:20      NameError: name 'client' is not defined
Oh, and a heat pump is a unit that works like a reverse fridge (and can be used as an ac as well), and it can warm up the house with much less power than you need to do it with regular panel heaters:

https://en.wikipedia.org/wiki/Heat_pump

It's very common in Norway, because we need a lot of heat in this cold hell. Think Alaska. :mrgreen:

Alonmalka, seems like you haven't been here since that post. :cry:

User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Has anybody done anything with Sensibo Sky?

Post by yokel22 » Fri Feb 02, 2018 4:26 pm

Well, you could pull the commands from the sample client & use them in the http requests plugin or a python script. Putting the sample script directly into an e.g. script isn't gonna work immediately. There's only a few commands for the api. I'll write a plugin for it here later today.

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Sat Feb 03, 2018 8:18 am

Oh, thank you very much! Brilliant! :mrgreen:

User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Has anybody done anything with Sensibo Sky?

Post by yokel22 » Sun Feb 04, 2018 8:32 am

Sorry, i got busy. Go ahead & test this to see what you get back. Add your api key to the top of the script.

Code: Select all

import requests
import json

# Enter your api key
key = ' '
params['apiKey'] = key
params['fields'] = 'id,room'
baseUrl = 'https://home.sensibo.com/api/v2'
cmd = '/users/me/pods'

response = requests.get(baseUrl + cmd, params = params)
jString = response.content
jDict = json.loads(jString)

print jDict

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Sun Feb 04, 2018 9:01 am

Sure, I understand. I'm the beggar here, so I neither want to or can complain about that! :mrgreen: But what I got was this:

Code: Select all

09:59:08      Traceback (most recent call last):
09:59:08        Python script "214", line 6, in <module>
09:59:08          params['apiKey'] = key
09:59:08      NameError: name 'params' is not defined
Of course I know that I would need to use the first, longer code somewhere to define params, but where should I have that?

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Sun Feb 04, 2018 9:03 am

Oh, by longer code I mean the Github code.

User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Has anybody done anything with Sensibo Sky?

Post by yokel22 » Sun Feb 04, 2018 5:22 pm

Were not gonna use the sample client. Any errors will relate to the e.g. script. I forgot to define the params dict before adding keys. There is zero documentation apart from the sample client. So, I apologize in advance as this may take a bit of back & forth to iron out.

Code: Select all

import requests
import json

# Enter your api key
key = ' '
params = {}
params['apiKey'] = key
params['fields'] = 'id,room'
baseUrl = 'https://home.sensibo.com/api/v2'
cmd = '/users/me/pods'

response = requests.get(baseUrl + cmd, params = params)
jString = response.content
jDict = json.loads(jString)

print jDict

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Sun Feb 04, 2018 5:53 pm

There is of course no need at all to apologize! I'm on the receiving end of this gift, so I better work for it! :mrgreen:

Code: Select all

18:51:59      Traceback (most recent call last):
18:51:59        Python script "215", line 12, in <module>
18:51:59          response = requests.get(baseUrl + cmd, params = params)
18:51:59        File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\api.py", line 71, in get
18:51:59          return request('get', url, params=params, **kwargs)
18:51:59        File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\api.py", line 57, in request
18:51:59          return session.request(method=method, url=url, **kwargs)
18:51:59        File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\sessions.py", line 475, in request
18:51:59          resp = self.send(prep, **send_kwargs)
18:51:59        File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\sessions.py", line 585, in send
18:51:59          r = adapter.send(request, **kwargs)
18:51:59        File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\adapters.py", line 477, in send
18:51:59          raise SSLError(e, request=request)
18:51:59      SSLError: [Errno 2] No such file or directory

User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Has anybody done anything with Sensibo Sky?

Post by yokel22 » Sun Feb 04, 2018 5:59 pm

Are you using e.g. 5.0 rc4? If so, I think that's what is causing that error. I think kg fixed this. You can try downloading rc4 again & reinstalling. Or install rc2, the ssl error wasn't in that version.

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Has anybody done anything with Sensibo Sky?

Post by Mastiff » Sun Feb 04, 2018 7:03 pm

Actually I'm running the version WIP-2018.01.07-15.47.38. It's working stable for me, after a fw things have been corrected in plug-ins after my wish. :mrgreen: I have 0.4 running at my cabin and I can VNC in to that, would that work for this?

Post Reply