Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

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: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

You need to remove the {} from the api key.
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 »

Yes, I did! :mrgreen: I need it in with teaspoons, you se... :oops: But now list devices really works, I see "Varmepumpe ovenpå". I can't use the ID as the name, though. That fails, and I would like to keep the name as it is. Can you please make the script unicode aware?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

HOLY COW!

you are sure asking a lot there boss...
Attachments
test.py
(13.05 KiB) Downloaded 37 times
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

I have to leave for a few hours i have some errands to run. I should be back in 2-3 hours
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 »

No problem at all, I'm not in a hurry. You will have time, I will probably be in bed when you get back, I have to get up early tomorrow morning. :mrgreen:
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

Not sure if you know this or not. But there is a script attached to my 2nd to last post with the unicode problem hopefully sorted
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 »

I didn't! Sorry... I keep overlooking your short, quick mesages... :oops: Yeah, guess I'm asking a lot. :) Let me know if it's impossible...

I ran it, and without "" around the name of the device, Varmepumpe ovenpå, I get this:

Code: Select all

test.py: error: unrecognized arguments: ovenpÕ
With "" around the device name, "Varmepumpe ovenpå", I get this:

Code: Select all

test.py: error: argument --device-name: invalid unicode value: 'Varmepumpe ovenp\xe5'
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

ok i am going to have to do the good ol encode/decode thing. it may take me a bit to get it right. for some crazy reason it does every time i mess around with unicode.. you would think I would remember how to do it.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

give this one a shot.


because you have a space in the device name you are going to have to use the double quotes
Attachments
test.py
(13.09 KiB) Downloaded 39 times
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

Mastiff wrote: Mon Feb 12, 2018 12:46 pm Let me know if it's impossible...

Nothing is impossible... That word does not exist to me. I may state that it is beyond my present knowledge, or maybe that it is beyond the current state of technology.. But at some point it will/can be done.
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 »

For your "syncronized posting": We have a very famous fictional inventor in a Norwegian children's series by the name of Reodor Felgen. His motto is: "The difficult is a trifle, and the impossible only takes a bit more time." :mrgreen:

Afraid not. I'm starting to wonder if I should use Varmepumpe-ovenpå instead of Varmepumpe ovenpå, though. The version with the dash gives me this:

Code: Select all

Varmepumpe-ovenpÕ
False
23
None
None
None
None
Traceback (most recent call last):
  File "py.py", line 29, in <module>
  File "D:\test.py", line 401, in <module>
    device_name = args.device_name.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 16: ordinal not in range(128)
Doesn't that seem more promising?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

you shouldn't have to change a thing. I think i should have it sorted.

try this one.
Attachments
test.py
(13.22 KiB) Downloaded 39 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 »

Code: Select all

D:\>"c:\program files (x86)\eventghost\py" test.py API KEY --device-name Varmepumpe ovenpå --set-temp 23
usage: test.py [-h] [--list-devices] [--device-name DEVICE_NAME]
               [--set-temp SET_TEMP] [--set-swing SET_SWING]
               [--set-power SET_POWER] [--set-mode SET_MODE]
               [--set-fan SET_FAN]
               api_key
test.py: error: unrecognized arguments: ovenpÕ
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Has anybody done anything with Sensibo Sky?

Post by kgschlosser »

did you use the "" around the device name?

"c:\program files (x86)\eventghost\py" test.py API KEY --device-name "Varmepumpe ovenpå" --set-temp 23
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 »

I tried that too:

Code: Select all

D:\>"c:\program files (x86)\eventghost\py" test.py API KEY --device-name "Varmepumpe ovenpå" --set-temp 23
API KEY
Varmepumpe ovenpÕ
False
23
None
None
None
None
Traceback (most recent call last):
  File "py.py", line 29, in <module>
  File "D:\test.py", line 406, in <module>
    dev = getattr(client, device_name)
  File "D:\test.py", line 366, in __getattr__
    raise AttributeError
AttributeError
Post Reply