Control Thermosmart thermostat

For heating/cooling related questions in Domoticz
mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Monday 27 July 2015 13:05

In the source there are traces of code indicating native support for Thermosmart is coming. However these traces are several months old, so I wonder if there is still being worked on.

Would be nice though!

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Monday 27 July 2015 21:17

mastair wrote:In the source there are traces of code indicating native support for Thermosmart is coming. However these traces are several months old, so I wonder if there is still being worked on.

Would be nice though!
Rob is still working on it. I gave him access to my system. There was a small problem but i hope it can be solved.
Rpi, RFXcom, klikaan klikuit switch,thermosmart

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Sunday 09 August 2015 15:46

In V2.2907 is thermosmart intergrated in domoticz! :D Much thanks to Gizmocus for his work!
Rpi, RFXcom, klikaan klikuit switch,thermosmart

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Sunday 09 August 2015 20:10

Very nice. It does not work for me however. Log says 'check username/password', so I checked it three times.

Client id and secret I got from the back of the thermosmart where id starts with ITxxxxx.

Am I missing something?

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Sunday 09 August 2015 23:55

mastair wrote:Very nice. It does not work for me however. Log says 'check username/password', so I checked it three times.

Client id and secret I got from the back of the thermosmart where id starts with ITxxxxx.

Am I missing something?
Client id and secret you got from thermosmart, id starts with api-xxx. It xxxx is your thermostart id and you don' t have to fill this in. Username and password are the same as the webinterface.
Rpi, RFXcom, klikaan klikuit switch,thermosmart

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Monday 10 August 2015 6:59

When or where should I have received this client id and secret? I was one of the first with Thermosmart long before the api was there.

Shouldn't Domoticz sign up for an API key once (through https://docs.google.com/forms/d/1_uojxF ... rm?c=0&w=1) and use that for every domoticz user? Just like IFTTT does?

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Monday 10 August 2015 7:29

mastair wrote:When or where should I have received this client id and secret? I was one of the first with Thermosmart long before the api was there.

Shouldn't Domoticz sign up for an API key once (through https://docs.google.com/forms/d/1_uojxF ... rm?c=0&w=1) and use that for every domoticz user? Just like IFTTT does?
You must sent a email to thermosmart and apply for a api then you get a client id and a secret.
Rpi, RFXcom, klikaan klikuit switch,thermosmart

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Monday 10 August 2015 7:45

Exactly my point. That is not how the API is designed. Then every user will have to apply for an API key, in stead of every product (and they will have to process the requests manually).

I am pretty sure Gizmocuz should apply for one API key for Domoticz and hardcode it in the source. Only downside is that the webhook cannot be used but who really cares. Domoticz now polls every 30 sec anyway.

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Monday 10 August 2015 13:56

mastair wrote:Exactly my point. That is not how the API is designed. Then every user will have to apply for an API key, in stead of every product (and they will have to process the requests manually).

I am pretty sure Gizmocuz should apply for one API key for Domoticz and hardcode it in the source. Only downside is that the webhook cannot be used but who really cares. Domoticz now polls every 30 sec anyway.
I cann't do anything on that problem. You have to make a comment by thermosmart for that. I only know that for pvoutput( solar) i also have to apply for an api by mail.
But the bottom line is that there's a intergration with domoticz. :D
Rpi, RFXcom, klikaan klikuit switch,thermosmart

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Monday 10 August 2015 18:33

My guess is you did not read my messages nor the link I posted (but I'll forgive you... ;)).

So again, Thermosmart has an api. The software supplier who wants to integrate Thermosmart in its software package should apply for an API key (see the link I posted), not the user.

That's exactly why we do NOT need an API key to control Thermosmart with IFTTT. IFTTT applied for an API key for Thermosmart (the users should not). I just need my username and password to connect Thermosmart to IFTTT (no API key).

Hopely GizMoCuz can join this discussion because I'm feeling not understood.... :oops:

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Monday 10 August 2015 20:07

mastair wrote:My guess is you did not read my messages nor the link I posted (but I'll forgive you... ;)).

So again, Thermosmart has an api. The software supplier who wants to integrate Thermosmart in its software package should apply for an API key (see the link I posted), not the user.

That's exactly why we do NOT need an API key to control Thermosmart with IFTTT. IFTTT applied for an API key for Thermosmart (the users should not). I just need my username and password to connect Thermosmart to IFTTT (no API key).

Hopely GizMoCuz can join this discussion because I'm feeling not understood.... :oops:
I understand your point but I think, correct me if I'm wrong, if the api key is applied by domoticz you can only read out your temperature and not controlling your device.For me it is now possible to pause my thermosmart.
Rpi, RFXcom, klikaan klikuit switch,thermosmart

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Monday 10 August 2015 20:18

We can do all of that with IFTTT, so that is not the case.

kaashoek
Posts: 28
Joined: Saturday 20 September 2014 14:44
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by kaashoek » Thursday 13 August 2015 11:29

The thermosmart webhook does a hppt get from an url provided by the API registration to signal changes in the thermosmart parameters or settings
As domoticz does NOT run a central service you can not have domoticz register for an API key but every user of Thermosmart needs to register and you need to provide a webhook url that connects to your domoticz instance.

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Thursday 13 August 2015 11:44

You do not need the webhook.

Domoticz does polling.

kaashoek
Posts: 28
Joined: Saturday 20 September 2014 14:44
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by kaashoek » Thursday 13 August 2015 12:35

Agree the webhook is not needed, but if used it provides much quicker updates of temperature changes

mastair
Posts: 24
Joined: Wednesday 01 July 2015 7:56
Target OS: -
Domoticz version:
Contact:

Re: Control Thermosmart thermostat

Post by mastair » Thursday 13 August 2015 13:17

Agreed... So the golden solution would be that a default Domoticz Thermosmart api key is provided, but the user can override it, but I hardly think there is a true benefit to that.

User avatar
gizmocuz
Posts: 8526
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Control Thermosmart thermostat

Post by gizmocuz » Monday 17 August 2015 8:42

i applied for an API key now almost 2 weeks ago, and did not received back any reply
maybe because i do not own the hardware?

Maybe someone can PM me an API key that we can use globally ?
Quality outlives Quantity!

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Control Thermosmart thermostat

Post by rron » Monday 17 August 2015 17:35

I send you PM
Rpi, RFXcom, klikaan klikuit switch,thermosmart

bgitmans
Posts: 16
Joined: Thursday 20 August 2015 22:19
Target OS: OS X
Domoticz version: 3.5166
Location: Boxtel, the Netherlands
Contact:

Re: Control Thermosmart thermostat

Post by bgitmans » Thursday 20 August 2015 22:31

I have to agree with mastair. If the functionality is embedded in domoticz this would make it a lot easier to use and implement for the "common user".

User avatar
gizmocuz
Posts: 8526
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Control Thermosmart thermostat

Post by gizmocuz » Friday 21 August 2015 8:39

I received an api client_id/secret, there is a new beta available.
After the update, you have to setup the hardware again and provide your username/password
Quality outlives Quantity!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests