Has anybody done anything with Sensibo Sky?

If you have a question or need help, this is the place to be.
Post Reply
User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Fri Feb 23, 2018 10:49 am

ok well this is where I would need access to the unit to make it a whole lot faster process of debugging this thing. Otherwise it is going to be a whole lot of back and forth. it's up to you. The only thing I will need to do is to turn the unit on and off. nothing more. If i get that to work everything else should fall into place
If you like the work I have been doing then feel free to Image

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 23, 2018 11:50 am

You're not reading my messages, are you? :mrgreen: :mrgreen: :mrgreen: I PM'ed you the API key two days ago! And I think I told you in the thread that I would do it too!

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Fri Feb 23, 2018 12:22 pm

yeah I know I have the key. but you said something about unplugging the unit. so that would remove my ability to change anything on the unit.
If you like the work I have been doing then feel free to Image

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 23, 2018 12:26 pm

Ah, sorry. No, that's the physical heat pump I plugged out, not the Sensibo. But I actually just moved the Sensibo outside of the range of the heat pump. It doesn't take "talkback" from the pump, so it won't know the difference.

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Sat Feb 24, 2018 3:57 am

ok.... give this whirly bird a twirl.


the control has changed. run the file as before just DO NOT add your api key or device name.
Attachments
test.py
(32.16 KiB) Downloaded 90 times
If you like the work I have been doing then feel free to Image

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 24, 2018 6:57 am

I get the API key prompt, and I input that. And then connect Varmepumpe ovenpå. And I get some unicode error again. :(

Code: Select all

Enter Command: connect Varmepumpe ovenpå
D:\test.py:843: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Traceback (most recent call last):
  File "py.py", line 29, in <module>
  File "D:\test.py", line 953, in <module>
    dev = client.get_device(device_name)
  File "D:\test.py", line 850, in get_device
    raise AttributeError
AttributeError
With double quotes:

Code: Select all

Enter Command: connect "Varmepumpe ovenpå"
D:\test.py:843: UnicodeWarning: Unicode equal comparison failed to convert both
arguments to Unicode - interpreting them as being unequal
Traceback (most recent call last):
  File "py.py", line 29, in <module>
  File "D:\test.py", line 953, in <module>
    dev = client.get_device(device_name)
  File "D:\test.py", line 850, in get_device
    raise AttributeError
AttributeError

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Sat Feb 24, 2018 11:51 am

i created a github repository for this https://github.com/kdschlosser/Sensibo_Sky_API

I think I may have fixed that issue. You can download the latest version from there. you will have to rename the __init__.py to test.py and run it the same way as you just did.

I tested this thing out and I was able to power the unit on and off successfully. I didn't mess about with any of the other things.
If you like the work I have been doing then feel free to Image

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 24, 2018 4:01 pm

I'm afraid there's something wonky there. Or I did something wrong, I don't know.

Code: Select all

D:\>"c:\program files (x86)\eventghost\py" test.py
Traceback (most recent call last):
  File "py.py", line 29, in <module>
  File "D:\test.py", line 7
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
Scratch that. For some reason the file isn't downloaded when I click save as, I'm downloading some kind of Github HTML.

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 24, 2018 4:08 pm

I just don't get it. I can't seem to download it correctly. I tried to save as a raw file, but I still got errors:

Code: Select all

D:\>"c:\program files (x86)\eventghost\py" test.py
Traceback (most recent call last):
  File "py.py", line 29, in <module>
  File "D:\test.py", line 44, in <module>
    import requests  # NOQA
ImportError: No module named requests

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Sun Feb 25, 2018 6:06 am

go to the repository. you should see a green button that says "clone or download" when you click on it a menu opens and gives you 2 options. one is open with desktop. the other is download as zip. you want to download it as a zip.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Sun Feb 25, 2018 6:10 am

I also fixed the import error with requests. that was my bad.. sorry..
If you like the work I have been doing then feel free to Image

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 25, 2018 7:19 am

I got further, but I'm afraid I got this:

Code: Select all

Enter Command: connect "Varmepumpe ovenpå"
D:\test.py:916: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Command not valid for this device/mode
Enter Command: connect Varmepumpe ovenpå
Command not valid for this device/mode
Enter Command: connect "Varmepumpe ovenpå"
Command not valid for this device/mode
Enter Command:

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Sun Feb 25, 2018 8:20 am

fixed
If you like the work I have been doing then feel free to Image

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 25, 2018 8:27 am

Seems like there's another one:

Code: Select all

Enter Command: connect "Varmepumpe ovenpå"
D:\test.py:1003: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Enter Command:
I still have the device available for use if you want to check yourself. I can keep it like that for around 12 more hours.

User avatar
kgschlosser
Site Admin
Posts: 5508
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser » Sun Feb 25, 2018 8:53 am

I am using it right now without issue.

Code: Select all

C:\Python36-32\python.exe C:/Users/Administrator/Documents/GitHub/pySensibo_Sky/pySensibo_Sky/__init__.py
Enter API Key: 
"help" for a list of commands
Enter Command: connect Varmepumpe ovenpå
Enter Command: start poll 0.2
Enter Command: power on
Varmepumpe ovenpå.power = True # this is an event
Enter Command: power off
Varmepumpe ovenpå.power = False # this is an event
If you like the work I have been doing then feel free to Image

Post Reply