I think I found the issue. Using Edge I created Home Assistant webpage as an app so I could pin it to my taskbar and it opens like an app. I have noticed that when updating some items it doesnāt work in app mode. So I opened the HA webpage through the browser and did the update there and it worked. I also copied your version of yaml but donāt think that was the problem.
Thanks for your help and the blueprint.
Thanks for the help.
Thanks for the blueprint. Iām relatively new to HA and this my first automation with HA. The following:
alias: Office Lights On
description: Turn Office Light ON at sunset and OFF at sunrise
use_blueprint:
path: Blackshome/entities-on-off-trigger-conditions.yaml
input:
entity_switch:
entity_id:
- light.office_light
- light.office_light_2
include_sun: sun_enabled
include_light_control:
- use_brightness
light_brightness: 50
include_entity_input: entity_disabled
light_transition_on: 5
light_transition_off: 5
sun_elevation_rising: -4
sun_elevation: 5
Turns the lights on appropriately before sunset but doesnāt turn them off at sunrise. I added the line āsun_elevation_risingā since the normal edit only created one line (sun_elevation) in the YAML.
These are Feit smart light bulbs connected via the Tuya integration.
Thanks for reaching out and giving me the heads up. There was a bug and it has now been resolved. Please update the blueprint. It will not change your automatons when you update. You can do this by just clicking on the āImport Blueprintā blue button again at the top.
If you donāt see it in your YAML it just means that you are using the default value and havenāt selected anything yet so that is okay.
Trigger-Ready Control - Customize On & Off for Light, Switch, Scene, or Any Entity
Maintenance
Update the description in āLights - Switches - Entities - Scenesā to include the new option to select ālabelsā. The updated description should read:
NOTE: Only entities can be used. Areas, devices, and labels are not supported.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Excellent! Question, any chance to add weather to this? What I mean is, Iād like to use Sun elevation along with weather so if itās cloudy/raining I can change the elevation value to a different value compared to sunny/partly cloudy, etc.
Apologies, I should have provided more detail. Hereās an example for turning lights on and off at sunrise/sunset:
Letās say for example itās cloudy or raining, set the sunās elevation higher before turning lights on/off and if itās clear or partly cloudy, set the suns elevation lower.
Thx for the quick response. I am using that config in one area of the house and not wanting this everywhere due to not wanting to spend money on additional sensors since the ambient light would differ extensively. There is a blueprint for āClose/open curtain (cover, blinds) based on sun and weatherā that I can adaptā¦ would be nice though to have the optionā¦ thanks for your hard work!
Enable the sun and you āSun Elevation Fallingā settings to your liking. Just leave the āSun Elevation Risingā set to -4. Then enable time. Set your āOn Timeā to 11:59pm and your āOff Timeā to 12am. Happy days.
Hi Blacky! Once again - thank you for all your work on the blueprints. As you can tell Iām working my way through all of them and replacing my multiple convoluted automations with your simple and structured blueprints
Iām considering replacing my 3 automations with what I think can be done with this single blueprint, which does the following:
At sunset, turn ON 4-specific lights, if there is anyone at home
At sunset, if no one is at home, turn ON only 2-specific lights (for the dogs )
If we leave the house after sunset, turn OFF all lights leaving just 2-specific lights ON
When returning home after sunset, turn ON 4-specific lights (similar to case 1)
Scenarios 1 & 2 seem like they can be done fairly straightforward through the sun elevation trigger and appropriate global condition of zone.home.
Scenarios 3 & 4 - am I right in assuming I have to use the entity state option (I have a āpersonsAtHomeā group which reports āhomeā and ānot_homeā I can tie to a ON/OFF toggle helper) to trigger these? Am I on the right track here? Hopefully this isnāt too confusing!
Best to use the sensor light blueprint with probably a schedule for the trigger and sun condition and device tracker. The 2 lights to leave ON without device tracker.
TIP If you use a schedule helper then you can set the time before sunset and OFF later in the night or after sunrise. Then when you select the sun condition it will trigger the light ON / OFF if someone is home. Device tracker will turn the lights ON / OFF when you arrive or leave home if the trigger is ON and it meets your sun condition.