Home Assistant : Q&A, Tips & Tricks, Your Configs

deesef

Expert Member
Joined
Mar 3, 2017
Messages
2,627
I need to find a reliable host for my HA - experience with RPi 4 + SSD boot has not been great. Every 3rd or 4th OS update it doesn't come back up and I have to do a tedious reload and restore.

I have a Synology NAS but didn't like the Docker method 'cos then you can't run HACS (which is a pita). Apparently it can run in a VM on the NAS but there are conflicting reports on the overhead generated.
My Windows PC is on 24-7. It runs HA via Hyper-V, Plex with Tautulli and Blue Iris for the cameras. It is also used for normal PC stuff, including browsing, photo editing with Lightroom and occasional video editing. I sometimes experiment with Linux builds as well. I also sometimes use it to stream stuff when it is easier than using the Android TV box.

In more than a year, HA has not had a glitch, even though I normally apply updates 2 to 3 days after they release.
 

tRoN

Executive Member
Joined
Mar 13, 2007
Messages
6,739
I need to find a reliable host for my HA - experience with RPi 4 + SSD boot has not been great. Every 3rd or 4th OS update it doesn't come back up and I have to do a tedious reload and restore.

I have a Synology NAS but didn't like the Docker method 'cos then you can't run HACS (which is a pita). Apparently it can run in a VM on the NAS but there are conflicting reports on the overhead generated.

I wonder if the recent updates are corrupting the drives ?
 

MattRoy

Well-Known Member
Joined
Jan 10, 2011
Messages
358
I need to find a reliable host for my HA - experience with RPi 4 + SSD boot has not been great. Every 3rd or 4th OS update it doesn't come back up and I have to do a tedious reload and restore.

I have a Synology NAS but didn't like the Docker method 'cos then you can't run HACS (which is a pita). Apparently it can run in a VM on the NAS but there are conflicting reports on the overhead generated.
I run HA in Docker with HACS just fine.
 

w1tw0lf

Expert Member
Joined
Sep 29, 2009
Messages
1,184
Also use to have a celeron nuc like pc with ssd and worked as dream. Much more powerful than pi.

Just moved mine to a vm on proxmox, running full hassio os.

Ps: if you on East Rand, send me dm. Let's chat maybe you can take it of my hands.
 

tRoN

Executive Member
Joined
Mar 13, 2007
Messages
6,739
So using crystal disk info my ssd seems to be healthy so still not sure why it crashes.

Have reflashed the OS and restored from backup and see how it goes

1e5a1d11489a5b31837becf40f7c593a.jpg
 
Last edited:

TedLasso

Expert Member
Joined
Feb 23, 2016
Messages
3,757
Don't know how I didn't know about this, but if you have dimmable lights or even colour lights, check out this custom adaptive lightning addon. Adjust the brightness based on time of day, or rather position of the sun taking sunrise and sundown in consideration. It also does the flux effect if you have ability to change colour. I currently use it with my shelly dimmers and it is brilliant after fine tuning it a bit.
I just let my hue app manage this. I know hue bulbs are expensive but damn nothing locally comes close to their quality. Also I see that signify (they make the hue bulbs) also made a nice contribution to hass this month based on a request from them.
 

TedLasso

Expert Member
Joined
Feb 23, 2016
Messages
3,757
Some nice updates coming in the latest release....
Waiting a few days before upgrade. Unclear if groups defined via YAML will get imported into frontend.

Also unsure if we made a switch a light in YAML will come through into frontend . For this , I don't think it would but it's not a train smash.
 

n00bster

Well-Known Member
Joined
Nov 25, 2008
Messages
171
With the D5 smart you can program the IOs. There's an option for gate status, so the gate knows whether it's closed, open, opening, partially closed, etc.
  • Remove resistors from Sonoff SV to use it in isolated mode
  • Configured SV tasmota accordingly (there are a few guides online for operating in isolated mode
  • Connect motor COM to SV negative power input and to ground pin
  • Connect IO4 (the one I used for gate status on my gate) to GPIO14 on SV
  • Connect motor 12v to SV positive power input
I didn't connect the SV to trigger my gate motor to open. I have a dog so can't risk screwing up and my gate opening randomly.

In short, the D5 keeps track of gate status so you don't need a reed switch. A reed switch is probably a more sure way of tracking gate status though.

In HA the sv shows as on/off. On if the gate is closed and off if it's in any other state.

Hopefully that answers the questions
@SAguy can you help me to get the wire correct please. I have this diagram I got from another thread. is this correct? according to your steps do I use the DC5-24V power supply at all? or only the DC0-30V and AC90-250V?

Remove both resistors and flash Tasmota
Motor Com to SV negative (DC 0-30v) where is the ground pin?
Motor Positive 12v to SV positive input (AC 90-250V)
Output Positive to the TRG on the D5 Smart to be able to trigger the gate with a 0.5sec inching.
Gate status IO to GPIO14 for gate status in HA





1649312933754.png
 

SAguy

Honorary Master
Joined
Nov 4, 2013
Messages
10,614
@SAguy can you help me to get the wire correct please. I have this diagram I got from another thread. is this correct? according to your steps do I use the DC5-24V power supply at all? or only the DC0-30V and AC90-250V?

Remove both resistors and flash Tasmota
Motor Com to SV negative (DC 0-30v) where is the ground pin?
Motor Positive 12v to SV positive input (AC 90-250V)
Output Positive to the TRG on the D5 Smart to be able to trigger the gate with a 0.5sec inching.
Gate status IO to GPIO14 for gate status in HA





View attachment 1285010
I can't really recall everything off the top of my head without refreshing my memory a bit.
I'll try find a gap today to open my motor and take some pics of the wiring
 

n00bster

Well-Known Member
Joined
Nov 25, 2008
Messages
171
I can't really recall everything off the top of my head without refreshing my memory a bit.
I'll try find a gap today to open my motor and take some pics of the wiring
sent you a DM you can message me there
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
4,283
@SAguy can you help me to get the wire correct please. I have this diagram I got from another thread. is this correct? according to your steps do I use the DC5-24V power supply at all? or only the DC0-30V and AC90-250V?

Remove both resistors and flash Tasmota
Motor Com to SV negative (DC 0-30v) where is the ground pin?
Motor Positive 12v to SV positive input (AC 90-250V)
Output Positive to the TRG on the D5 Smart to be able to trigger the gate with a 0.5sec inching.
Gate status IO to GPIO14 for gate status in HA





View attachment 1285010
The SV can operate in 2 modes. Firstly, you can apply o-30V DC or 90-250V AC on the left pins. This voltage will then be passed to the output pins on the right. Second mode is using the 5-24V DC power on the pins at the bottom, then you can connect the input and output pins. This mode is what I used on the gate and garage motors. On the gate the 24V DC was stable enough to power the SV, but on the garage it would power off often. So I used a 12V DC power supply for the garage door SV and it was solid after that.

To trigger the gate open function you want to bridge the Trigger and COM ports on the gate motor. So you use either the black or red line on the left and right of the image, one goes to COM port and the other to Trigger. SO when the switch activates (ensure it is set to inching mode) you are just bridging those ports and no voltage is applied to it. That will then trigger that gate open function.

I haven't done the status yet, but that is on my to do list. For the status you have to use one of the pins in the middle of the board (block of 9 pins). These are the pins to use from the status LED and COM port:
1649321889454.png

This info is what I remember from doing this a year or so ago, so confirm before doing anything.
 

n00bster

Well-Known Member
Joined
Nov 25, 2008
Messages
171
The SV can operate in 2 modes. Firstly, you can apply o-30V DC or 90-250V AC on the left pins. This voltage will then be passed to the output pins on the right. Second mode is using the 5-24V DC power on the pins at the bottom, then you can connect the input and output pins. This mode is what I used on the gate and garage motors. On the gate the 24V DC was stable enough to power the SV, but on the garage it would power off often. So I used a 12V DC power supply for the garage door SV and it was solid after that.

To trigger the gate open function you want to bridge the Trigger and COM ports on the gate motor. So you use either the black or red line on the left and right of the image, one goes to COM port and the other to Trigger. SO when the switch activates (ensure it is set to inching mode) you are just bridging those ports and no voltage is applied to it. That will then trigger that gate open function.

I haven't done the status yet, but that is on my to do list. For the status you have to use one of the pins in the middle of the board (block of 9 pins). These are the pins to use from the status LED and COM port:
View attachment 1285090

This info is what I remember from doing this a year or so ago, so confirm before doing anything.
okay now I have a issue I just got he SV device today and I see it looks slightly different. I don't see which resistor to take out or any GPIO inputs.

1649322840160.jpeg
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
4,283
okay now I have a issue I just got he SV device today and I see it looks slightly different. I don't see which resistor to take out or any GPIO inputs.

View attachment 1285096
That is not the SV, that is the specific gate/garage door switch:

Wiring instructions are here:

Doesn't look like it has the sensor input though.
 
Top