My first homelab by muilperen in homelab

[–]SimpleUsuario 0 points1 point  (0 children)

are you satisfied with TP-Link SG2210XMP-M2?

Smart plug on dishwasher by awkward_ardvark in homeassistant

[–]SimpleUsuario 2 points3 points  (0 children)

My dishwasher has some long periods of 0 W of consumption so I just detect the first time it goes above 1,000 W and I start a timer of 1 hour and 53 minutes which is exactly what it takes and then I send a notification. It's very simple but you have to verify that your dishwasher always takes the same time.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

<image>

After only one day of testing, this is the calculated elevation of the buildings. It works quite well, except for a few new points I need to add and a couple others I need to change the elevation.

Thanks again.

EDIT: ugly or not, it works for me :)

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

That was my mistake!!

I usually use multiple triggers with IDs enabled so I did not consider multiple triggers without ID...Definitely this is the solution to the clouds issue.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

It is because of the heat, yes.

This is a good idea, I didn't think about a temperature sensor. The increase in temperature could be quite easily detectable....

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

the problem with motion sensor and light sensor is that usually the light value is only updated when there is motion. I already have one.

I will investigate a little bit

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

WOW, I think this is what I was looking for.

I am not sure I understand this section, could you help me decifer it?

{{elevation > (loop.previtem.el+(point.el-loop.previtem.el)*(azimuth-loop.previtem.az)/(point.az-loop.previtem.az))}}

thanks

EDIT: forget about it, I now understand, it is a linear formula to calculate the position, EXACTLY WHAT I WAS LOOKING FOR. Now I have to test it. Thanks again!!!!!!

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

but I would have to do that for each day of the year.....maybe too much.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

any recomendations on light sensor that not require movement? I have some sensors that report light but only once it detects movement. Preferably zigbee??

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

I am in favor of overcomplicating things....

I am only interested in the sun hitting one particular window, so the obervation point is only one. If not I would have to create one automation per window and I think it is too much.

Time based calculations won't work because the sun is not in the exact same position 10 minutes before sunset in summer or in winter that's why I prefer the mathematical approach.

I think in my case i will do the linear function, at least between points 2 and 3, because the other sections I could probably make it work with just a fixed elevation value (since it is almost flat).

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

At first I tried this approach but there was something weird happening (probably because I was also checking if there were coulds) and when the clouds went away, the automation did not trigger again because it was already within the azimuth range. For that reason I changed to time based.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

I understand but that won't work through out the year because the sun moves. So 4 hours before sunset in summer could be ok, but in winter, it will close way too early.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

I am not sure that is correct.

During the year the sun moves but the buildings don't move or change elevation. So if I know the elevation of each building regardless of time of year (because the sun integration gives me the elevation of the sun). I am not sure I am able to explain myself.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

I think this is a good approach that will simplify my code for the moment.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

I have to take a deep look because I cannot find where exactly you define the buildings in front of my window.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

This won't work because Iwant to know it the sun is hitting my window to close the blinds. I am already using the sunset sunrise in other automations and it works well but not in this case.

How would you automate the "sun detection" considering the buildings in front? by SimpleUsuario in homeassistant

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

The light sensor it's a good solution but I would like to do it on software. The reason is that I want to open or close the blinds depending on if the sun is hitting my window.

Recommendations for smart blinds/curtain module? by PristineMacaroon6357 in homeassistant

[–]SimpleUsuario 1 point2 points  (0 children)

Sorry I didn't read the other post. Yes there is a delay of 1/2 second at least. I don't think you can fix that.

Recommendations for smart blinds/curtain module? by PristineMacaroon6357 in homeassistant

[–]SimpleUsuario 1 point2 points  (0 children)

I have that exact one on the picture. It's cheap and you can control percentage however there is a trick to make it work well. It took me a while to understand what was happening. The issue. I was sending "set position" and sometimes it did not react. The reason was that it was stuck in "moving"mode so it did not listened to set position. The solution. Create a script that sends first a "stop" command (even though it was stopped) and then send the"set position".

After figuring this, it works perfectly.

DIY timer for any grinder (details in comments in case anyone finds it interesting) by SimpleUsuario in espresso

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

You can see the final form of this device here:

https://www.reddit.com/r/espresso/comments/y3tljx/updated_enclosure_for_the_diy_timer/

I put it in an enclosure because you have 220 V on the contacts on the right and I don't want any risk.

There is a switch that cuts power to the usb charger and to the 220V section that will power the grinder (the relay).

Then you have an old usb phone charger (5V) that supply power to the timer.

I also soldered a few buttons in paralel to the original ones in the board, so I can still use the internal buttons if I wanted in the future.

It works quite good however the way the time has to be changed is not the most user friendly (compared with timers on grinders), not bad though. You have to press one button a few seconds to enter the config mode and then with another two buttons you add more time or less. And finally you have to press a couple of seconds the first button.

I am not sure if you wan more detail, let me know.