thermostat with Oled display

elmaya
Posts: 1215
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Sun Nov 29, 2020 2:59 am

to compile this you have to use the Supla library v1.6.1

https://github.com/SUPLA/arduino
YoMan
Posts: 88
Joined: Thu Apr 30, 2020 5:18 pm

Sun Nov 29, 2020 5:45 pm

elmaya wrote:
Sun Nov 29, 2020 2:59 am
to compile this you have to use the Supla library v1.6.1

https://github.com/SUPLA/arduino
damn it :evil: ... 2 hours of my life is gone ... ;) Now I wrote it down to remember.
thanks bro
YoMan
YoMan
Posts: 88
Joined: Thu Apr 30, 2020 5:18 pm

Sun Nov 29, 2020 5:50 pm

YoMan wrote:
Sun Nov 29, 2020 5:45 pm
elmaya wrote:
Sun Nov 29, 2020 2:59 am
to compile this you have to use the Supla library v1.6.1

https://github.com/SUPLA/arduino
damn it :evil: ... 2 hours of my life is gone ... ;) Now I wrote it down to remember.
thanks bro
BTW:

Code: Select all

if (dimm == true) {
    display.setContrast(35, 50, 10)
what means second and third value? 1st is brightness - it's clear but two others I couldn't find the right explanation (or haven't looking enought for it). I was trying to change the values but nothing visible has changed in working.
YoMan
elmaya
Posts: 1215
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Sun Nov 29, 2020 5:59 pm

YoMan wrote:
Sun Nov 29, 2020 5:45 pm
elmaya wrote:
Sun Nov 29, 2020 2:59 am
to compile this you have to use the Supla library v1.6.1

https://github.com/SUPLA/arduino
damn it :evil: ... 2 hours of my life is gone ... ;) Now I wrote it down to remember.
thanks bro
yes, it's a bit confusing with the two Supla libraries.
if "#define SUPLADEVICE_CPP" is among the first lines of the code it is the "Supla v1.6.1 library "
otherwise it will be "Supla Dev library"
YoMan
Posts: 88
Joined: Thu Apr 30, 2020 5:18 pm

Sun Nov 29, 2020 8:52 pm

elmaya wrote:
Sun Nov 29, 2020 5:59 pm
YoMan wrote:
Sun Nov 29, 2020 5:45 pm
elmaya wrote:
Sun Nov 29, 2020 2:59 am
to compile this you have to use the Supla library v1.6.1

https://github.com/SUPLA/arduino
damn it :evil: ... 2 hours of my life is gone ... ;) Now I wrote it down to remember.
thanks bro
yes, it's a bit confusing with the two Supla libraries.
if "#define SUPLADEVICE_CPP" is among the first lines of the code it is the "Supla v1.6.1 library "
otherwise it will be "Supla Dev library"
OK. I'll try to remember ... ;)
I'm on the beginnig of may adventure with arduino/esp8266/supla/automatization/smart home/things , etc ..... so sometimes I have more questions than anybody is able or has time to give answers ;)
so thank You twice in the name of all beginners for You spending Your valuable time on that forum <thumb up> :)
P.S.
for others as well of course but it is the thread that concerns Your project
YoMan
YoMan
Posts: 88
Joined: Thu Apr 30, 2020 5:18 pm

Fri Dec 04, 2020 9:15 pm

@elmaya

I wanted to play more with Your soft and bought 1,3 OLED SH1106. I've just downloaded the source from github and I've got that flicker symptom. There was a compiled version https://en-forum.supla.org/viewtopic.php?p=49382#p49382 with fixed bug but is it fixed in non-compiled version? Or is it my mistake with compilation?
YoMan
elmaya
Posts: 1215
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Sat Dec 05, 2020 9:06 am

YoMan wrote:
Fri Dec 04, 2020 9:15 pm
@elmaya

I wanted to play more with Your soft and bought 1,3 OLED SH1106. I've just downloaded the source from github and I've got that flicker symptom. There was a compiled version https://en-forum.supla.org/viewtopic.php?p=49382#p49382 with fixed bug but is it fixed in non-compiled version? Or is it my mistake with compilation?
this is the latest version with the libraries:
supla_Termostst_oled_sensor_icomo_H_C.rar
(58.77 KiB) Downloaded 47 times
YoMan
Posts: 88
Joined: Thu Apr 30, 2020 5:18 pm

Sun Dec 06, 2020 6:00 pm

elmaya wrote:
Sat Dec 05, 2020 9:06 am
YoMan wrote:
Fri Dec 04, 2020 9:15 pm
@elmaya

I wanted to play more with Your soft and bought 1,3 OLED SH1106. I've just downloaded the source from github and I've got that flicker symptom. There was a compiled version https://en-forum.supla.org/viewtopic.php?p=49382#p49382 with fixed bug but is it fixed in non-compiled version? Or is it my mistake with compilation?
this is the latest version with the libraries:

supla_Termostst_oled_sensor_icomo_H_C.rar
Thanks a lot.
BTW: I do not need window sensor at the moment (maybe in future) so I've changed some lines. Would You like to check if it will not cause any problems in future?

added "//":

Code: Select all

//   if (window == false){
//                display.drawXbm(48, 0, 16, 16, logo16_Win_close);// -------------------------------------------------- window close  -------- 
//           }else{            
//                display.drawXbm(48, 0, 16, 16, logo16_Win_open);// -------------------------------------------------- window open --------                                 
//   }
changed "window == true" to "window == false":

Code: Select all

void itrate_Term() {
    
    if (window == false){
      if ( digitalRead(btn[1].relay_pin-1) == 1){             
          (btn[1].mem) = 0 ;
          Serial.println("Window open");
          CustomSupla.relayOff(1); 
and

Code: Select all

   if (window == false){
         display.setFont(ArialMT_Plain_16);
         display.setTextAlignment(TEXT_ALIGN_CENTER);
         display.drawString(64, 48, "HALTED " + String(trs, 1) + "ºC");            
YoMan
eradek
Posts: 69
Joined: Sun Sep 09, 2018 5:32 pm

Sun Mar 07, 2021 5:15 pm

My implementation of Elmaya's thermostat.

Image
Attachments
1615137209414.jpg
1615137209414.jpg (5.79 MiB) Viewed 56 times
radzik_r
Posts: 77
Joined: Sun Aug 11, 2019 5:32 pm

Sun Mar 07, 2021 10:18 pm

eradek wrote:
Sun Mar 07, 2021 5:15 pm
My implementation of Elmaya's thermostat.

Image
fajnie wygląda
Post Reply

Return to “Ideas and concepts”