This opens the selected curtain when all of the configurable conditions are met:
Sun elevation above threshold
Sun azimuth (position on compass) in range
Temperature above threshold (prevent closing on cold days)
Weather is sunny or partly cloudy
When the first condition is not met any more, the cover is opened again. Opening will be skipped if it happens after a configured time to prevent opening cover at evening/night.
Thanks for this. I have installed the blueprint and the var from hacs ad set up a boolean too.
Today I tested and got this:
Executed: 27 June 2023 at 5:28:08 pm
Result:
result: false
## conditions/0
Executed: 27 June 2023 at 5:28:08 pm
Result:
result: false
## conditions/0/conditions/0
Executed: 27 June 2023 at 5:28:08 pm
Error: In 'template' condition: TypeError: '>' not supported between instances of 'NoneType' and 'int'
## conditions/0/conditions/1
Executed: 27 June 2023 at 5:28:08 pm
Result:
result: false entities: - weather.tomorrow_io_sawa_home_daily
## conditions/1
Executed: 27 June 2023 at 5:28:08 pm
Result:
result: false
## conditions/1/conditions/0
Executed: 27 June 2023 at 5:28:08 pm
Error: In 'template' condition: TypeError: '<' not supported between instances of 'NoneType' and 'int'
## conditions/1/conditions/1
Executed: 27 June 2023 at 5:28:08 pm
Result:
result: true entities: []
Maybe the position attribute of your curtain is not defined? You can check this in the template view by checking the result of {{ state_attr(“YOUR CURTAIN ID”, “position”) }}.
This is a good idea! I’m not sure though, how to implement a selector that can use either the temperature from the weather service/entity or a thermostat, as they are different domains?
I would think either one or the other not both, did you that mean? I simple use a xiaomi tempereature sensor LYWSD03MMC with atc-firmware but the temperature between the weather service and sensor are mostly different
Agree to some extent. The weather service I use “Tomorrow.io” seems accurate enough for my needs for this automation. I do have have 2 external sensors; one that measures air temperature and one is a thermometer mounted on the wall.
The problem with the thermometer is that during the morning its in the shade. In the afternoon its in direct sunlight and as it heats up from the sunlight, the readings are way above the real temperature.
So having the option to add a sensor would be good.
I think we all agree on the optimal solution from a user perspective: when configuring the blueprint we’d like an input “temperature source”, that offers a list off all temperature entities and all (available) weather entities from which the user could select one (either temp or weather).
For me it is not clear if this is technically possible. In case it is not, what feasible alternative solutions are there?
I think separate blueprints would be possible, but are bad from a user perspective (need to change the blueprint when switching from sensor to weather…) and hard to maintain. But, of course, if someone else wants to give it a try, I’d be delighted.
Is it perhaps possible to extend the blueprint in such a way that an earliest time can be optionally set? E.g. for the bedroom that the roller shutters do not move before 8 a.m.
Something similar is already implemented for evenings, where a “open” action is skipped after a specific time. E.g. do not open the shutter when already at sleep.
To get it consistent and understandable, there are some decisions to be made:
Should actions during the configured (night) time be skipped or “delayed” until after the end time?
Should open and/or close actions be addressed?
My naïve idea would be “delayed + both open and close action” but I’m not sure this covers all/most use cases and is technically feasible. Thoughts?
@Markus1995 with the second point I mean: It is rather clear that during the configured night time one should only prevent “open” actions (as one does not want to have the curtain open while asleep). About “close”, I’m not so sure. One the one hand, one could say that this is OK, as it only keeps the room dark, on the other hand, one could be annoyed/waked by the motor moving. Does that make sense?
@Soulfly999 the latest blueprint version allows for selection of the “Temperature source”, which can be either a weather entity or a temperature device