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 » Sun Mar 04, 2018 1:25 am

I also just updated the library so you can give that a shot as well. I think I may have located the issue.
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 Mar 04, 2018 8:05 am

No, sorry. Same result. And it's the same symbol if I copy it or if I write it as an å with my keyboard.

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 Mar 04, 2018 9:26 am

I now it appears to be the same symbol. But it might not be. It's complicated. Because all I am doing is copying and pasting what is being returned by the Sensibo Sky server.

I am going to add having it print out the types. I am not sure what is different here. It's driving me crazy. Because it works on my end. I am trying to think of what could be different.
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 Mar 04, 2018 10:32 am

No, it doesen't just look like the same. It is the same. I checked it. You can too: http://www.babelstone.co.uk/Unicode/whatisit.html The character is identified as U+00E5 in both cases. :wink:

Can the reason be that you're working on a system with the languague/keyboard set to English, while mine is set to Norwegian? It has to be the keyboard, in that case. I tried it on my server, which has Windows Server 2008 R2 English (there is no Norwegian version of that), and that didn't change anything. I haven't tried it on the server with English keyboard, but I will do that now.

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 Mar 04, 2018 10:36 am

Hang on! I suddenly see that you write that you have updated the library! I'm not even sure what library that is, so that may be what I'm missing here!

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 Mar 04, 2018 10:40 am

Changing the server to US keyboard and language didn't change anyhting. But I'm thinking that the library you are mentioning in the first post on this page, which I managed to overlook... :oops: can be the thing. So please let me know what library that is, and how I update it.

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 Mar 04, 2018 10:45 am

I tried to update EG to the very latest version (I had the second to latest) hoping that this would update the library you mentioned, but that didn't change anything.

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 Mar 04, 2018 10:53 am

I also went back to Github and saw a new commit during the night, and that changed the line number with the error:

Code: Select all

Enter device name to connect to: Varmepumpe ovenpå
D:\test.py:1143: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Successfully connected to Varmepumpe ovenpå
"help" for a list of commands
And then the regular "not connected" stuff.

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 Mar 04, 2018 11:12 am

the library is what I am putting onto Github.

But none the less... give this a go and see if it works. This will forego any keyboard input :shock: :lol:

I really do hope it does. I have been messing around with this all night.
Attachments
SensiboSky-0.1.0b.egplugin
(13.3 KiB) Downloaded 83 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 » Sun Mar 04, 2018 11:20 am

I'm afraid you won't like me anymore... :mrgreen: I added the plugin, chose "Execute" with the API key in, chose the heat pump from Available units, clicked Add and finally chose that in the dropdown list of Selected units. Then I clicked Apply, and EG started to bleed:

Code: Select all

12:19:08   Exception in thread Thread-34988:
12:19:08   Traceback (most recent call last):
12:19:08     File "threading.pyc", line 801, in __bootstrap_inner
12:19:08     File "threading.pyc", line 754, in run
12:19:08     File "C:\ProgramData\EventGhost\plugins\SensiboSky\__init__.py", line 176, in do
12:19:08       d = self.device_names
12:19:08     File "C:\ProgramData\EventGhost\plugins\SensiboSky\__init__.py", line 166, in device_names
12:19:08       self.__add_device(device_name)
12:19:08     File "C:\ProgramData\EventGhost\plugins\SensiboSky\__init__.py", line 143, in __add_device
12:19:08       device = self._sensibo_sky.get_device(device_name)
12:19:08     File "C:\ProgramData\EventGhost\plugins\SensiboSky\pySensibo_Sky\__init__.py", line 1183, in get_device
12:19:08       name = name.decode('utf-8')
12:19:08     File "encodings\utf_8.pyc", line 16, in decode
12:19:08   UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 16: ordinal not in range(128)
12:19:08   
And this is actually working when you do it on my unit? The API key hasn't changed yet, btw. It will be there for 8-10 more hours.

Also double clicing the Get/Set Power macro is blood red too:

Code: Select all

12:20:41   Traceback (most recent call last) (WIP-2018.02.28-12.06.26):
12:20:41     File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 162, in ProcessingTask
12:20:41       self.Configure(*args, **kwargs)
12:20:41     File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 106, in Configure
12:20:41       treeItem.Configure(*args)
12:20:41     File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 80, in Configure
12:20:41       return self.executable.Configure(*args)
12:20:41     File "C:\ProgramData\EventGhost\plugins\SensiboSky\__init__.py", line 624, in Configure
12:20:41       device_ctrl = wx.Choice(panel, -1, choices=self.plugin.device_names)
12:20:41     File "C:\ProgramData\EventGhost\plugins\SensiboSky\__init__.py", line 166, in device_names
12:20:41       self.__add_device(device_name)
12:20:41     File "C:\ProgramData\EventGhost\plugins\SensiboSky\__init__.py", line 143, in __add_device
12:20:41       device = self._sensibo_sky.get_device(device_name)
12:20:41     File "C:\ProgramData\EventGhost\plugins\SensiboSky\pySensibo_Sky\__init__.py", line 1183, in get_device
12:20:41       name = name.decode('utf-8')
12:20:41     File "encodings\utf_8.pyc", line 16, in decode
12:20:41   UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 16: ordinal not in range(128)
Btw if it helps I could set up a Team Viewer to a VM with EG and the script installed, so you can see if it's a Norwegian problem.

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 Mar 04, 2018 11:30 am

The team viewer thing might be best. Because I am not sure what the issue is. it works like a champ on my end.

Tho the error I am now seeing I have seen before. Let me make another change
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 Mar 04, 2018 11:33 am

ok here goes.
Attachments
SensiboSky-0.1.1b.egplugin
(13.3 KiB) Downloaded 88 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 » Sun Mar 04, 2018 11:37 am

That didn't complain when choosing the unit, but it did complain on restart of EG:

Code: Select all

12:34:29   utf-8 name decode error
12:34:29   latin-1 name decode error
12:34:29   utf-8 pod_name decode error
12:34:29   latin-1 pod_name decode error
12:34:29   name: <type 'unicode'> pd_name: <type 'unicode'>
But on the other han I can now click the power and such without a problem. And I seeeee you!!!! :mrgreen:

Code: Select all

12:35:30   C:\Program Files (x86)\EventGhost\eg\Classes\EventGhostEvent.py:123: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
12:35:30     eventString == key or
12:35:30   SensiboSky.Varmepumpe ovenpå.room_humidity.20.20 {'new_value': 20.2}
I think this is as close as you've ever been! I can turn off power!!!! This is both me and you, I think:

Code: Select all

12:37:00   SensiboSky.Varmepumpe ovenpå.room_humidity.19.90 {'new_value': 19.9}
12:37:02   SensiboSky.Varmepumpe ovenpå.room_dew_point.-4.02 {'new_value': -4.022531712154368}
12:37:05   SensiboSky.Varmepumpe ovenpå.room_heat_index.18.14 {'new_value': 18.135166666666667}
12:37:05   MQTT.eg/Tellstick.Temperatur u"Viking,69,21.1"
12:37:05   SensiboSky.Varmepumpe ovenpå.power.True {'new_value': True}

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 Mar 04, 2018 11:39 am

well it is butchering the unicode. but at least it is running.

LOL

I will work on that in a while. everything should work even tho the unicode is all goofed.
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 Mar 04, 2018 11:42 am

Brilliant, thanks a lot! :mrgreen: I love that it gives events when something else changes the settings! That way the EG web page will be updated when I change the settings from the app as well!

Post Reply