Request: Home Automation

Message
Author
Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: Request: Home Automation

#41 Post by Jakob77 »

@AK-47

It is good you warn about that 220 volt is dangerous to mess with.
I'm mostly afraid of it because I hate getting shocks.
But unless it's very unfortunate, I'll probably only get bristly hair. ;)

If you think about Track 2
viewtopic.php?p=755983#p755983
I believe the security risk will be very low.
It will likely not matter if they crack my wifi. They will also be up against a MX-Linux computer before they can mess with my relays.
viewtopic.php?p=756537#p756537
And the things I plan to control are not as critical as for instance the room temperature is.
If it fails so the hot water gets cold or hotter all the time for a day or two it is not a big deal.
Also if the heat pump is heating some more water for a few days is not a big deal.
However if it works well for a year I recon there can be saved a good amount of money and coal.
How much will depend on the government, and at the moment they are hurting the project with unintelligent taxes and too little will to put up more windmills.
But over the last two years and with war in Ukraine there has been a huge variety in the electricity prices on daily and hourly basis.
30-60 Watt for a MX computer is not much to talk about if the 3000 Watt water heater alone can run at half price or sometimes even make money.
Most of the energy for the computer will also help heating up the room where it is put so it won't be pure waste.

About downloading the price list I hope to get it for free.
I am waiting for an answer from these guys:
https://www.energidataservice.dk/

As I see it the biggest hurdle for me will be to make the scripts I need to download the list and make the computer find the right time to turn the relays on and off.

Do you perhaps have some advice about how I find the codes for some of it.?

I believe the Home Assistant people has made something for Windows but can that help anything in MX.?



In case this subject is also locked soon, I will be happy to receive any inspiration and hints about the script codes in a PM from anyone. :thumbup:





@MikeR

No, in Denmark where I live, the sun never shines...
Just kidding. ;)

I did use some old radiators to heat water for some years but it was hardly worth it because I lost too much heat in the long pipes I have here.
I know a small summer place where it works very well.
However I believe solar panels are so cheap now that they in most cases will be a better solution.

User avatar
MadMax
Posts: 483
Joined: Wed Aug 04, 2021 3:25 pm

Re: Request: Home Automation

#42 Post by MadMax »

Jakob77 wrote: Sun Dec 17, 2023 8:09 amIt is good you warn about that 220 volt is dangerous to mess with.
I'm mostly afraid of it because I hate getting shocks.
But unless it's very unfortunate, I'll probably only get bristly hair. ;)
220 V can and will kill you, there's also nasty illnesses like arrythmia that can come from a shock even if you survive - please be careful with what you're doing and don't play it down.

It's the other way around - you have to get lucky to get away with bristly hair (it depends on how well you're grounded, the better the more likely it will kill you). There's a reason ground leakage circuit breakers are mandatory in most (if not all) of Europe.
If it ain't broke, don't fix it.
Main: MX 23 | Second: Mint 22 | HTPC: Linux Lite 7 | VM Machine: Debian 12 | Testrig: Arch/FreeBSD 14 | Work: RHEL 8

User avatar
AK-47
Developer
Posts: 1284
Joined: Sun Mar 24, 2019 7:04 pm

Re: Request: Home Automation

#43 Post by AK-47 »

It's more the possibility of arc flash and the relay exploding in one's hand or catching fire during operation because of it not having the correct properties or being of insufficient build quality and insulation strength and output isolation that is worth being concerned about. Speaking of arc tracking, you may find without sufficient isolation the 220V gets dumped into your beloved MX box via the USB port. These kinds of failure modes (particularly when carbon traces form due to insects or surges) which are much more subtle than just getting bristly hairdo electric shocks.

User avatar
j2mcgreg
Global Moderator
Posts: 7144
Joined: Tue Oct 23, 2007 12:04 pm

Re: Request: Home Automation

#44 Post by j2mcgreg »

For your own protection, you should get a pair of these (or similar):
https://www.uline.ca/Product/Detail/S-2 ... kwQAvD_BwE
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: Request: Home Automation

#45 Post by Jakob77 »

Yes, yes, yes, I agree with you all.

So can I have the scripts now.? ;)



AK-47

The electric water heater is 380V and 3000 Watt.
That is too much for the USB relays I have, so it has to be a small USB relay activating a bigger relay to turn it on.
I have already bought the bigger relay also, so I am a bit prepared. :-)

User avatar
Eadwine Rose
Administrator
Posts: 15164
Joined: Wed Jul 12, 2006 2:10 am

Re: Request: Home Automation

#46 Post by Eadwine Rose »

Jakob77 wrote: Sun Dec 17, 2023 10:56 am Yes, yes, yes, I agree with you all.

So can I have the scripts now.? ;)
I didn't know our forum name was MX Google?

The MX Forum is for help with MX, not a general research and help site for whatever strikes your fancy.
MX-23.6_x64 July 31 2023 * 6.1.0-38amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
AK-47
Developer
Posts: 1284
Joined: Sun Mar 24, 2019 7:04 pm

Re: Request: Home Automation

#47 Post by AK-47 »

Actually it's MX Ask Jeeves!

Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: Request: Home Automation

#48 Post by Jakob77 »

Back on Track 2.

My search for electricity prices on hourly basis for download has taken me to this page:

https://www.energidataservice.dk/tso-el ... spotprices

And with a link like this I can download a list:

https://api.energidataservice.dk/datase ... es?limit=5

To a file:

Code: Select all

wget https://api.energidataservice.dk/dataset/Elspotprices?limit=5
The content of the file then looks like this:

Code: Select all

{"total":1703998,"limit":5,"dataset":"Elspotprices","records":[{"HourUTC":"2023-12-24T22:00:00","HourDK":"2023-12-24T23:00:00","PriceArea":"DK1","SpotPriceDKK":-0.750000,"SpotPriceEUR":-0.100000},{"HourUTC":"2023-12-24T22:00:00","HourDK":"2023-12-24T23:00:00","PriceArea":"DK2","SpotPriceDKK":118.400002,"SpotPriceEUR":15.880000},{"HourUTC":"2023-12-24T22:00:00","HourDK":"2023-12-24T23:00:00","PriceArea":"NO2","SpotPriceDKK":175.949997,"SpotPriceEUR":23.600000},{"HourUTC":"2023-12-24T22:00:00","HourDK":"2023-12-24T23:00:00","PriceArea":"SE3","SpotPriceDKK":175.949997,"SpotPriceEUR":23.600000},{"HourUTC":"2023-12-24T22:00:00","HourDK":"2023-12-24T23:00:00","PriceArea":"SE4","SpotPriceDKK":175.949997,"SpotPriceEUR":23.600000}]}

That is pretty ugly, and I realize more than ever before that the size of the trouble we will have using the data depends on the output.

Therefore I am thinking about asking the company somehow to make it beautiful for us.
It is just not that easy to get the details in place, and I don't know if I can make them do it but I do know I better ask for the right output the first time.

For instance if they make some options in links, so I can link to the cheapest 1, 2, 3 etc hours for my specific area the next 2, 3, 4 etc. hours and that provides an output with just the times, then it can be pretty easy to search the file for a specific time, and if it exists the script turns on a switch at that time.

Does that make sense.?

I know this is not for the whole world yet so a global solution is ahead of time.
However I think Denmark, Norway, Sweden and Germany is a good start.
And maybe there are more countries with other good download options I don't know about yet.?

User avatar
Eadwine Rose
Administrator
Posts: 15164
Joined: Wed Jul 12, 2006 2:10 am

Re: Request: Home Automation

#49 Post by Eadwine Rose »

I have told you that this forum is not for your personal projects.


I am closing this thread.
MX-23.6_x64 July 31 2023 * 6.1.0-38amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Locked

Return to “Chat”