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.
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?
- 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?
You need to remove the {} from the api key.
Re: Has anybody done anything with Sensibo Sky?
Yes, I did!
I need it in with teaspoons, you se...
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?
- 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?
HOLY COW!
you are sure asking a lot there boss...
you are sure asking a lot there boss...
- Attachments
-
- test.py
- (13.05 KiB) Downloaded 38 times
- 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?
I have to leave for a few hours i have some errands to run. I should be back in 2-3 hours
Re: Has anybody done anything with Sensibo Sky?
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. 
- 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?
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
Re: Has anybody done anything with Sensibo Sky?
I didn't! Sorry... I keep overlooking your short, quick mesages...
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:
With "" around the device name, "Varmepumpe ovenpå", I get this:
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ÕCode: Select all
test.py: error: argument --device-name: invalid unicode value: 'Varmepumpe ovenp\xe5'- 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?
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.
- 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?
give this one a shot.
because you have a space in the device name you are going to have to use the double quotes
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 40 times
- 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?
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.
Re: Has anybody done anything with Sensibo Sky?
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."
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:
Doesn't that seem more promising?
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)- 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?
you shouldn't have to change a thing. I think i should have it sorted.
try this one.
try this one.
- Attachments
-
- test.py
- (13.22 KiB) Downloaded 40 times
Re: Has anybody done anything with Sensibo Sky?
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Õ- 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?
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
"c:\program files (x86)\eventghost\py" test.py API KEY --device-name "Varmepumpe ovenpå" --set-temp 23
Re: Has anybody done anything with Sensibo Sky?
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