Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


andrewNZ

2487 posts

Uber Geek
+1 received by user: 1461
Inactive user


#214202 1-May-2017 21:01
Send private message

As per the topic:

I've been working on a MQTT controlled but still reasonably standalone relay. I'm using my current version one (V1) to control my hot water and it's working pretty well.
I’m working on V2, which will add more features and better functionality.

Basically I wanted to put my hotwater on a timer, but wanted to be able to control it based on the power price in the future too.
I’ve ended up with a control system that would be pretty flexible with a few minor mods.

Currently running on an Arduino programmed Wemos D1 mini.
V1 has the following functionality:
• NTP time. With time zone and daylight savings correction.
• Weekly scheduling to the half hour level. (Mostly due to the way I store the schedule)
• MQTT control which can: Force ON/OFF , (anywhere from 1 second to years) , and force cancel. Change schedules. Change settings. Get status. More.

V2 is a work in progress (50% there) and will add:
• Storing and reading settings on an SD card. Settings Include: Wifi Settings. (password used and then deleted). Times settings. (probably). MQTT Settings. Default states
• Storing and reading schedules on an SD card.
• Logging to SD.
• Error critical messages over MQTT.
• Relay temperature monitoring.

V3 (May never happen) could add:
• A webpage for status, control and log downloading
• Scheduling to a minute level (Too hard to work out a reliable way to do this so far)

So, what do you think?
Anyone interested in playing with something like this?

Create new topic

mdf

mdf
3566 posts

Uber Geek
+1 received by user: 1519

Trusted

  #1773852 1-May-2017 21:10
Send private message

Sounds very cool. I am slowly finding my way into home automation stuff. @SumnerBoy and @mattrix have helpfully shared with me their garage door advice and code. Once I've sorted this out (step 1: get around to soldering the header pins on the wemos board I bought quite some time ago), I'd be keen to work my way up to other stuff like you're doing.




richms
29098 posts

Uber Geek
+1 received by user: 10207

Trusted
Lifetime subscriber

  #1773853 1-May-2017 21:15
Send private message

Interested in it if you get the code running on a sonoff of some sort.





Richard rich.ms

SumnerBoy
2079 posts

Uber Geek
+1 received by user: 306

ID Verified
Lifetime subscriber

  #1773862 1-May-2017 21:27
Send private message

Definitely interested. My personal view is to make these types of nodes as simple as possible. So they simply respond to on/off commands, via MQTT, and report status.

Then my controller is responsible for scheduling and all control, in my case openhab.

This makes the firmware relatively simple and makes it easy to change, by updating the controller, not each node.

But i do see the value in your approach, for those that want a simple, standalone, device.



andrewNZ

2487 posts

Uber Geek
+1 received by user: 1461
Inactive user


  #1773863 1-May-2017 21:27
Send private message

richms:

Interested in it if you get the code running on a sonoff of some sort.



Huh... never looked at them till now (seen them mentioned in passing once or twice). Should be pretty easy to mod it to work on that hardware, you'd loose the app functionality though.

Might have to buy one...

richms
29098 posts

Uber Geek
+1 received by user: 10207

Trusted
Lifetime subscriber

  #1773864 1-May-2017 21:29
Send private message

ewelink is a pretty bad app, so no great loss not having it. I have flashed a few with some stuff a guy made for smartthings but it doesnt have any local timer on the device, so I am reliant on making silly rules on smartthings to turn things off etc.





Richard rich.ms

andrewNZ

2487 posts

Uber Geek
+1 received by user: 1461
Inactive user


  #1773866 1-May-2017 21:33
Send private message

SumnerBoy: Definitely interested. My personal view is to make these types of nodes as simple as possible. So they simply respond to on/off commands, via MQTT, and report status.

Then my controller is responsible for scheduling and all control, in my case openhab.

This makes the firmware relatively simple and makes it easy to change, by updating the controller, not each node.

But i do see the value in your approach, for those that want a simple, standalone, device.

For the most part I totally agree with you.

My main reason for the complexity was the fact I'm using it for hot water, so it has to work, even if I break openhab.

A toddler in the house and no hot water = dad stabbed to death with his own hot soldering iron.

 
 
 
 

Shop now on Samsung phones, tablets, TVs and more (affiliate link).
SumnerBoy
2079 posts

Uber Geek
+1 received by user: 306

ID Verified
Lifetime subscriber

  #1773869 1-May-2017 21:38
Send private message

Ha, i am in the same boat. God help me if the wife has to turn on the lights by hand! And yes, running out of hot water would be big trouble.

acetone
204 posts

Master Geek
+1 received by user: 57


  #1774756 3-May-2017 09:11
Send private message

This sounds pretty interesting, how does your device connect to your hot water?


mattrix
193 posts

Master Geek
+1 received by user: 39
Inactive user


  #1774757 3-May-2017 09:14
Send private message

I'm assuming the WeMos connects to a decent solid state relay which just switches on / off power to the cylinder?
Then some sort of DS18B20 or similar temperature probe to read the temperature?

 

These are my fav solid state relay:
https://www.aliexpress.com/item/1AC/32699692440.html

 

Wide switching voltage.
I use one on my PC (USB 5V / Gnd)
So when I switch off my PC, it will switch off mains to some peripherals.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.