SwiCago / HarviaWiFi

Wifi Control of Harvia KIP Sauna Heater
GNU Lesser General Public License v3.0
41 stars 10 forks source link

Upgrade code from JSON 5 to JSON 6 library #3

Open SwiCago opened 5 years ago

SwiCago commented 5 years ago

Code was written using JSON Arduino library 5 and not 6. If you use this code, please use library 5 to compile. When I have time, I will upgrade the code to 6 and re-test.

jsk1000 commented 4 years ago

Hi Al,

Do you think the remote set up will work with this heater: https://almostheaven.com/virta-heater/ - It has an electric keypad to turn it on and control the temp.

Are you able to turn the heater on with your phone when you are away from home?

Thanks in advance, Jack Boulder, Colorado j a c k @ o n n o . c o m

chirojason commented 4 years ago

Hey Jack, Did you get it your heater working using this code?

Thanks, Jason

SwiCago commented 4 years ago

@jsk1000 @chirojason , wow no idea why github did not send me a notification for this question. Maybe it is because you didn't use @SwiCago to tag me. Anyhow, any heater can be converted. Even this digital one! However, you will most likely lose the digital control part, as they would be in conflict with each other over control of the primitive part(the heater). Only way to keep keypad and make wifi, would be by making your own digital control board and have it understand keypad. Or other option is to see if it has a second keypad port and make a wifi dongle connect to that and talk its language. That would require packet sniffing

jsk1000 commented 4 years ago

Jason,

Thanks very much for this! I appreciate it.

Best, Jack

------ Original Message ------ From: "SwiCago" notifications@github.com To: "SwiCago/HarviaWiFi" HarviaWiFi@noreply.github.com Cc: "Jack Kanefield" jack@onno.com; "Mention" mention@noreply.github.com Sent: 2/24/2020 5:48:45 AM Subject: Re: [SwiCago/HarviaWiFi] Upgrade code from JSON 5 to JSON 6 library (#3)

@jsk1000 https://github.com/jsk1000@chirojason https://github.com/chirojason , wow no idea why github did not send me a notification for this question. Maybe it is because you didn't use @name https://github.com/name to tag me. Anyhow, any heater can be converted. Even this digital one! However, you will most likely lose the digital control part, as they would be in conflict with each other over control of the primitive part(the heater). Only way to keep keypad and make wifi, would be by making your own digital control board and have it understand keypad.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SwiCago/HarviaWiFi/issues/3?email_source=notifications&email_token=AKAFLLKEAQTIWYY4DDJHI63REO623A5CNFSM4HAWMKLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMXVA6A#issuecomment-590303352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKAFLLOACGSVVYIZRQWCOY3REO623ANCNFSM4HAWMKLA.

SwiCago commented 4 years ago

@chirojason, are you using an iphone or android device? I tested with android, but the page to configure should be accessible at address 192.168.1.1 ... captive portal is just for convenience, but nothing keeps you from direct access. Heck, you could modify the code and hardcode all your details and skip the configuration part.line 425 can help with that! But first see if you can reach config page @ 192.168.1.1

chirojason commented 4 years ago

Hey @SwiCago . I gave up on the sonoff board back in February with all the corona mess and it got too hot to do the sauna. I still haven't gotten it to find my IP address. It was working as a basic wifi switch running Tasmota software but then I got a new router and I can not reload anything to make it work. Would it be possible to order a new sonoff and have it shipped to you to load the software you wrote on it and I'll Venmo or Paypal you money for shipping and for your time if you want? I really need to get this unit working before it starts getting cold again. My wife mentioned tonight she's ready to get back to the sauna. I have all the hardware conversion done and really don't want to switch it back to the original setup. It's frustrating that I've spent so many hours on it with no working unit now. Any help would be so appreciated!

Thanks, Jason Albracht

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#m_-3978630804419995655_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Feb 24, 2020 at 1:46 PM SwiCago notifications@github.com wrote:

@chirojason https://github.com/chirojason, are you using an iphone or android device? I tested with android, but the page to configure should be accessible at address 192.168.1.1 ... captive portal is just for convenience, but nothing keeps you fro direct access. Heck, you could modify the code and hardcode all your details and skip the configuration part.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SwiCago/HarviaWiFi/issues/3?email_source=notifications&email_token=ALNO2V742LO5NF2RW7V2Z4LREQP2NA5CNFSM4HAWMKLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMZIYTY#issuecomment-590515279, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNO2VZ27556XIBMICC3XITREQP2NANCNFSM4HAWMKLA .

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

jsk1000 commented 4 years ago

Hi Guys,

I have my heater 'turned on' permanently, bypassing the controls on the heater.

Then buy a simple on/off wifi switch from amazon, and run current to the heater when you want the sauna on. I turn it on with my phone from anywhere.

This is a super simple solution.

Jack

------ Original Message ------ From: "chirojason" notifications@github.com To: "SwiCago/HarviaWiFi" HarviaWiFi@noreply.github.com Cc: "Jack Kanefield" jack@onno.com; "Mention" mention@noreply.github.com Sent: 9/9/2020 8:09:50 PM Subject: Re: [SwiCago/HarviaWiFi] Upgrade code from JSON 5 to JSON 6 library (#3)

Hey SwiCago. I gave up on the sonoff board back in February with all the corona mess and it got too hot to do the sauna. I still haven't gotten it to find my IP address. It was working as a basic wifi switch running Tasmota software but then I got a new router and I can not reload anything to make it work. Would it be possible to order a new sonoff and have it shipped to you to load the software you wrote on it and I'll Venmo or Paypal you money for shipping and for your time if you want? I really need to get this unit working before it starts getting cold again. My wife mentioned tonight she's ready to get back to the sauna. I have all the hardware conversion done and really don't want to switch it back to the original setup. It's frustrating that I've spent so many hours on it with no working unit now. Any help would be so appreciated!

Thanks, Jason Albracht

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#m_-3978630804419995655_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Feb 24, 2020 at 1:46 PM SwiCago notifications@github.com wrote:

@chirojason https://github.com/chirojason, are you using an iphone or android device? I tested with android, but the page to configure should be accessible at address 192.168.1.1 ... captive portal is just for convenience, but nothing keeps you fro direct access. Heck, you could modify the code and hardcode all your details and skip the configuration part.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub

https://github.com/SwiCago/HarviaWiFi/issues/3?email_source=notifications&email_token=ALNO2V742LO5NF2RW7V2Z4LREQP2NA5CNFSM4HAWMKLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMZIYTY#issuecomment-590515279, or unsubscribe

https://github.com/notifications/unsubscribe-auth/ALNO2VZ27556XIBMICC3XITREQP2NANCNFSM4HAWMKLA .

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SwiCago/HarviaWiFi/issues/3#issuecomment-689929419, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKAFLLM6XTMNLAIM4GBMO4TSFAYO5ANCNFSM4HAWMKLA.

SwiCago commented 4 years ago

@chirojason , I cannot flash it for you. That would make me liable, if something were not to go as planned. I can however help you when you are ready via email. @jsk1000 be super careful, bypassing this way could cause runaway heating, if your switch is stuck in on position!

chirojason commented 4 years ago

@SwiCago , I understand. The world we live in is not what it used to be. Can you send me an email so we can converse that way? Mine is DrAlbracht@gmail.com Thank you! Jason

rockguitarpower commented 3 years ago

Hi @SwiCago, Thanks for putting this all together. I just got an indoor sauna with a Harvia heater and looking to put together this solution.

One thing I'm not clear on is if this is compatible for an iphone (what I use) or if it will only work on android?

Sorry if that's a rookie question

Mike

SwiCago commented 3 years ago

@rockguitarpower not sure if iphone has mqtt dash app, but I am sure there is an equivalent app. Just remember you need an mqtt broker for my variation to work or rewrite it to support a built in webservice(pretty easy with esp8266). Also note, if captive portal does not work when connecting to the devices initial wifi, just point your phones mobile browser to 192.168.1.1, which will bring up the config page. Cheers

rockguitarpower commented 3 years ago

cool, thanks for the response. I'll see what I can find and get working.

I did find this app on the app store: https://apps.apple.com/us/app/mqttool/id1085976398

arva-zz commented 3 years ago

@SwiCago great work. I'm brainstorming as well how to make my sauna smart. On Smart home side I have Home Assistant, some fibaro z-wave dimmers, garage door and gate made smart with sonoff SV (Tasmota firmware) MQTT, some ESP32 sensors etc.. So quite flexible on.

I have Harvia PC90EE heater with a keypad. Here is the manual with electrical scheme on page 13: https://harvia.fi/wp-content/uploads/2017/05/PC70EE_PC90EE_ENDE.pdf

I would like to make it "smart", meaning to controll it and collect some data (temp, humidity). And it would be excellent if the original keypad would work.

There are three scenarios listed by priority:

  1. Best would be option to read the dataflow between keypad and control unit. So that the original keypad will remain and it i can control the keypad so to say. I think this would be most complicated as well and i don't think I would be able to reverse engineer it.

  2. On the electric scheme there are something like N and P termials with description "optional Control of electric heating". Maybe this would be something i can controll the heater? No documentation on harvia site or internet about this tho.

  3. Swap Harvias control unit with a smart switch and losing keypad and some security functions.

So, if you could look into it and maybe help me out with some thoughts so i can move on, I would be greatful.

SwiCago commented 3 years ago

@arva-zz

  1. is your only option here. You'd need a device to dump the data between them. If you are lucky it is a simple serial device. Maybe even the main controller has a secondary serial control for 2. Optional control.
  2. Not enough info here. N is neutral and is one Phase(110V)
  3. You could do this, but you are missing a limit switch, which prevents your unit from going run away on you, in event of malfunction. That component would need to be added and replaced with your control unit and a limit switch.

Edit: I find this unit very interesting, as it uses Triacs to control the heater coils. The old school ones are a simple large relay, that just gets turned on/off. Yours has that huge relay too, but use of triacs would minimize the number of on/off cycles and possible keep temperature a lot closer to constent.