Re: [mh] Schulter Ditra thermostats
Tom MacLean <[email protected]> Fri, 5 Nov 2021 09:20:13 -0400
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
I had figured out the main Ditra object and that the others were dependent objects, but I had assumed "serial" was a string... perhaps it will work better as an integer. Can you give an example of reading the temp value? I assumed it would be stored in ->state but I got back nothing. (OTOH, if my Serial was wrong, maybe that would be expected). Is the set point set something like this? $room1_sp->set(12.5) Thanks On 2021-11-04 23:53, H Plato wrote: > Not only a spelling mistake, but no instructions either! :) > > Two things, > > Set the username (email) and password in the mh.config like this: > > ditra_username = [email protected] > ditra_password = password > > Then define the master object. I have two thermostats, but they use > the master object like this: > > use Schulter_Ditra; > $ditra = new Schulter_Ditra; > > $room1_sp = new Ditra_thermostat_sp($ditra,123456); > $room1_mode = new Ditra_thermostat_mode($ditra,123456); > $room1_temp = new Ditra_thermostat_temp($ditra,123456); > > $room2_sp = new Ditra_thermostat_sp($ditra,234567); > $room2_mode = new Ditra_thermostat_mode($ditra,234567); > $room2_temp = new Ditra_thermostat_temp($ditra,234567); > > Then in the web interface you can see the mode and change the > setpoint. By default I set the poll to every 10 seconds, so itâs not > realtime to reflect local changes. > > Iâll add these instructions and correct the spelling mistake for the > next update > >> On Nov 4, 2021, at 9:14 PM, Tom MacLean <[email protected]> wrote: >> >> >> I have the Schluter code running, but frankly I don't know how to use >> it. I set the required params, and I can see it authenticating and >> fetching my group. I tried creating a temp object, but I don't know >> how to read it. >> >> $Basement_Bathroom_Thermostat = new Schulter_Ditra(); >> $Basement_Bathroom_temp = new >> Ditra_thermostat_temp($Basement_Bathroom_Thermostat,"SERIAL NUMBER"); >> >> Can you provide any guidance? >> >> Thanks, >> Tom >> >> On 2021-11-04 17:20, Tom MacLean wrote: >>> Is it all contained in lib/Schulter_Ditra.pm ? (BTW, it's >>> Schluter.) >>> Will this lib run on the current release or are there unmet >>> dependencies? In any case, i will try. >>> Cheers >>> On 2021-11-03 22:49, H Plato wrote: >>>> ThatâÃÂÃÂs good. I uploaded my latest module to github. It tracks >>>> mode, >>>> and you can change the setpoint and pull the temperature. Be good to >>>> know if you have any feedback. >>>>> On Nov 3, 2021, at 8:35 PM, Tom MacLean <[email protected]> >>>>> wrote: >>>>> It took me a little fighting to get Crypt::SSLeay installed, but I >>>>> got there. (cpan wouldn't do it, I had to apt-get the relevant >>>>> libraries.) >>>>> I am able to authenticate at the schluter URL as well as the >>>>> generic one. I checked and both domains map to the same IP >>>>> address. >>>>> On 2021-11-02 10:52, H Plato wrote: >>>>>> Interesting. I can authenticate against that URL as well, so I bet >>>>>> youÃÂâÃÂÃÂÃÂÃÂre correct that the reseller is branding that URL. >>>>>> To create an account, I had to have power to my wifi device, and >>>>>> then >>>>>> associated that device with an email account. >>>>>> I donÃÂâÃÂÃÂÃÂÃÂt have any documentation ÃÂâÃÂÃÂÃÂàI pulled >>>>>> the endpoints from other >>>>>> integrations that are out there on github. >>>>>>> On Nov 1, 2021, at 9:17 PM, Tom MacLean <[email protected]> >>>>>>> wrote: >>>>>>> In truth, I haven't hooked up my unit to wifi yet -- the relevant >>>>>>> bathroom is still under construction (by me), but I'm almost >>>>>>> done. The heated floor and thermostat are in, all I need is the >>>>>>> "round tuit" to connect it to wifi. >>>>>>> The URL I have is diferrent, but the Schluter Thermostat is >>>>>>> definitely an OJ Microline ... so I think they have branded URLs >>>>>>> or perhaps a different application number. The code I expect to >>>>>>> use uses: >>>>>>> https://mythermostat.info/api/authenticate/user >>>>>>> {"Email":"LOGIN EMAIL","Password":"LOGIN >>>>>>> PASSWORD","Application":0} >>>>>>> Looks familiar, no? >>>>>>> Do you have documentation? The only two actions I know about are >>>>>>> setting an override "away" temperature, and resuming the normal >>>>>>> schedule. >>>>>>> Cheers >>>>>>> Tom >>>>>>> On 2021-10-31 18:25, H Plato wrote: >>>>>>>> OK, if you have an account with one of those stats, try running >>>>>>>> this >>>>>>>> command to see if you get a sessionID: >>>>>>>> ./get_url -response_code -json -post >>>>>>>> '{"EmailÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ:ÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ[email protected]","PasswordÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ:"password","Application":"7"}' >>>>>>>> https://ditra-heat-e-wifi.schluter.com/api/authenticate/user >>>>>>>> If you get back something like this: >>>>>>>> RESPONSECODE:200 >>>>>>>> {"SessionIdÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ:ÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂsdfhsdihflasdfhalsdiufha","NewAccount":false,"ErrorCode":0,"RoleType":3000,"Email":"[email protected]","Language":ÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂEN"} >>>>>>>> Then it will work. >>>>>>>>> On Oct 31, 2021, at 4:12 PM, Tom MacLean <[email protected]> >>>>>>>>> wrote: >>>>>>>>> Hi >>>>>>>>> Is the Schluter thermostat one of the models made by OJ >>>>>>>>> Electronics? They make thermostats for a bunch of floor >>>>>>>>> heating companies, including also WarmlyYours. In short, I >>>>>>>>> could test it if is. I didnÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂt think >>>>>>>>> they had a public API. All I found was a rather limited NodeRED >>>>>>>>> script. >>>>>>>>> Cheers, >>>>>>>>> Tom >>>>>>>>> Sent from my iPhone >>>>>>>>>> On Oct 30, 2021, at 2:34 PM, H Plato <[email protected]> wrote: >>>>>>>>>> ÃÂÃÂÃÂïÃÂÃÂÃÂûÃÂÃÂÃÂÿI donÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂt know if >>>>>>>>>> anyone else has any of these, but IÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂm >>>>>>>>>> just putting the finishing touches on a MH module to poll and >>>>>>>>>> control the wifi in-floor heat thermostats. >>>>>>>>>> It feels like there are a bunch of changes out there (like the >>>>>>>>>> tasmota stuff), IÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂm wondering if it >>>>>>>>>> makes sense to combine them all into master and look to >>>>>>>>>> package it for a release. MH is pretty mature and stable, so >>>>>>>>>> there hasnÃÂÃÂÃÂâÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂt been updates in a while, >>>>>>>>>> but would be good to have a current download. >>>>>>>>>> ________________________________________________________ >>>>>>>>>> To unsubscribe from this list, go to: >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users >>>>>>>>> ________________________________________________________ >>>>>>>>> To unsubscribe from this list, go to: >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users >>>>> ________________________________________________________ >>>>> To unsubscribe from this list, go to: >>>>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users >>> ________________________________________________________ >>> To unsubscribe from this list, go to: >>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users