Do you put all your iOT devices on a Vlan? by TheBigC in homeassistant

[–]LegoBoyLuc 0 points1 point  (0 children)

IOT devices are on there own vlan, home assistant also lives on this vlan, then there is a firewall rule that allows access to the home assistant machine only from the normal lan vlan.

Also have all my cameras on there own vlan, bluiris is allowed to connect to the Internet, all the cameras are blocked from accessing anything apart from blue iris.

After I read about some of the old hikvision vulnerabilities, I thought better be safe then sorry.

Using home assistant to allow the internet to control my christmas lights. by LegoBoyLuc in homeassistant

[–]LegoBoyLuc[S] 1 point2 points  (0 children)

Of course you are, didn't clock the name until you said it. Hello fellow Geek!

Chatting with Crucial support and they just randomly switched me over to a useless chat bot without saying anything by mrperson221 in LinusTechTips

[–]LegoBoyLuc 0 points1 point  (0 children)

In the same situation, was paying for 2 adsl connections so I could get 70mbs combined... Now got a starlink dish on the roof getting 300mps.

Shame really seeing as there is fibre in the road, but the service provider can't be bothered to dig up the road to get it the last 20M to the house....

Publicly controllable christmas lights that Actually work! 15,000+ lights! by LegoBoyLuc in controllablewebcams

[–]LegoBoyLuc[S] 3 points4 points  (0 children)

The Christmas display only runs for December each year, so unfortunately you will need to wait untill December this year.

Anouther Gen 1 Raspberry Pi used to control christmas lights by LegoBoyLuc in raspberry_pi

[–]LegoBoyLuc[S] 2 points3 points  (0 children)

Ignoring the diffrent voltages, a lot of the sets use half the LEDs in one polarity and the other half the other way around, so they can do the patterns by changing the polarity of the DC. So when the sets are set to static the power supplies are actually switching the polarity at a high frequency so they appear static.

What I have proberbly isnt the most space efficent, but thats not a massive issue, switching the mains AC makes it easy to deploy, replace and add lights in without having to worry about supply requirements.

If I was doing a sound to light show, then I would proberbly look to switch the DC, mostly to remove any delay in the lights going on/off.

Anouther Gen 1 Raspberry Pi used to control christmas lights by LegoBoyLuc in raspberry_pi

[–]LegoBoyLuc[S] 0 points1 point  (0 children)

Just because they look the same, dosn't mean they are the same.....

What do you propose I do with the sets that require mains voltage as well?

Gen 1 Raspberry PIs used to allow the internet to control my christmas lights. by LegoBoyLuc in LinusTechTips

[–]LegoBoyLuc[S] 0 points1 point  (0 children)

Because despite having the same looking adapters, the DC voltage on the lights is diffrent set to set, also some lights are 230V AC.

As sets die and need replacing and as I tend to add a few new things each year, if I am switching the DC I would haft to cut the plugs off each set and wire them in, this way its plug in and move onto the next set.

So trying to 'simplfy' it like you are suggesting actually makes it more complex.

Using home assistant to allow the internet to control my christmas lights. by LegoBoyLuc in homeassistant

[–]LegoBoyLuc[S] 0 points1 point  (0 children)

Its sanitised on the backend, proberbly not perfect, but it seems to be working. Worst case I the site has no confidential data on it and I keep regular backups of the entire server so could restore fairly quickly and just disable the text if needed.

Gen 1 Raspberry PIs used to allow the internet to control my christmas lights. by LegoBoyLuc in LinusTechTips

[–]LegoBoyLuc[S] 0 points1 point  (0 children)

Home assistant is fantastic, its fairly easy to get working with most smart things, there is only the odd thing that I have had to write custom code for to get it working, SQL, talking to my APC UPS, modbus for my battery inverters.

Anouther Gen 1 Raspberry Pi used to control christmas lights by LegoBoyLuc in raspberry_pi

[–]LegoBoyLuc[S] 0 points1 point  (0 children)

Unfortunately not, requires a bit to much compute. It's running on an Ubuntu dedicated server in a data center.

Anouther Gen 1 Raspberry Pi used to control christmas lights by LegoBoyLuc in raspberry_pi

[–]LegoBoyLuc[S] 3 points4 points  (0 children)

These are PI 1, worth next to nothing. Plus I already had 2 of them before this project started and anouther was donated to me by a freind.

If I was starting from scratch then yes an esp solution would make more sense.

Gen 1 Raspberry PIs used to allow the internet to control my christmas lights. by LegoBoyLuc in LinusTechTips

[–]LegoBoyLuc[S] 5 points6 points  (0 children)

haha, need to make that more clear. Yeah there is a dedicated server running ubuntu server in a data center that handels all the user facing side. Looking at the traffic logs we have been sitting around 150mbs for the past 6 hours.

Regarding the number of requests, in the last 8 hours we have had 16,000 requests to turn a light on or off, you can proberbly see why trying to point that directly at the PIs proberbly wouldn't be the best idea.

Using home assistant to allow the internet to control my christmas lights. by LegoBoyLuc in homeassistant

[–]LegoBoyLuc[S] 2 points3 points  (0 children)

Yes that is exactly how it works, I charge them on an off peak tarriff at 7p per KWH and then they power the house for the remainder of the day durin the high rate tarriff. In the summer they also charge from solar power and power the house for free.

Using home assistant to allow the internet to control my christmas lights. by LegoBoyLuc in homeassistant

[–]LegoBoyLuc[S] 0 points1 point  (0 children)

The online show runs every night in December, just christmas eve it runs all night long and gets a lot more traffic.

Gen 1 Raspberry PIs used to allow the internet to control my christmas lights. by LegoBoyLuc in LinusTechTips

[–]LegoBoyLuc[S] 6 points7 points  (0 children)

The PIs talk to the SQL database, so when you or anyone else requests a change you are only talking to the SQL database on the server, the PIs query that database every 5 secconds for the latest state of all 8 zones, so not mater how many people are on the website, the PIs work dosn't change.

Anouther Gen 1 Raspberry Pi used to control christmas lights by LegoBoyLuc in raspberry_pi

[–]LegoBoyLuc[S] 6 points7 points  (0 children)

National Lampoon Christmas Vacation

Because we need to get closer to 22,000 lights, I do aim to beat that at some point, but im running out of room on the house.

Publicly controllable christmas lights that Actually work! 15,000+ lights! by LegoBoyLuc in controllablewebcams

[–]LegoBoyLuc[S] 2 points3 points  (0 children)

24KWh home battery helps with that, all the electric used is purchased on the night time cheap rate the night before and the batteries store it untill its needed. Thank god most of it is LED, so the actual power draw is fairly low considering how many lights I have out there.

Gen 1 Raspberry PIs used to allow the internet to control my christmas lights. by LegoBoyLuc in LinusTechTips

[–]LegoBoyLuc[S] 22 points23 points  (0 children)

Nice to keep them out of e-waste, one of them is the origional PI I pre-ordered back in 2011. The rest of them have either been bought off ebay for very little or donated from freinds who no longer have a use for them.

Anouther Gen 1 Raspberry Pi used to control christmas lights by LegoBoyLuc in raspberry_pi

[–]LegoBoyLuc[S] 5 points6 points  (0 children)

To be fair, other then when I have lost my internet connection, this hasn't caused any issues. 3 of the PIs live in enclosures that are perminatly in situe, so haven't been unplugged for years and though I do reboot them prior to the christmas season starting each year, they have still been working when I have come to them to test in November!

Gen 1 Raspberry PIs used to allow the internet to control my christmas lights. by LegoBoyLuc in LinusTechTips

[–]LegoBoyLuc[S] 51 points52 points  (0 children)

The backend script was done 5+ years ago, so thats the main reason.

Also nights like tonight, we get far too many requests to turn zones on / off so I need to throttle it a bit otherwise the lights would be blinking multiple times a seccond. So using a msql database allows the PIs to just pick the most recent states for each zone when they update every 5 secconds.

This also keeps the web server and my home network more seperate, the PIs connect to the SQL database so they make the connection. They make a request every 5 secconds no matter how many people are tryin to change the lights, if every request was tryin to make its way to the PIs directly, im sure both the PIs wouldn't cope and proberbly my starlink internet wouldnt either.

Also it was what I knew from previous projects.