Closed promufa closed 2 months ago
You can follow the triggers in the traces and switch back and forth between them.
It is triggered at "Early" and "Late". And when the numeric threshold values are reached or crossed. See note in HA documentation "Numeric State Trigger"
I see thanks for clarifying.
Would it make sense to change the logic a bit, so that it triggers for example every 5 minutes and open / close if time is between "Early" and "Late", or for every change of sun.sun and time is between"Early" and "Late". This would force more frequent testing of any additional conditions and result in the automation being a lot more dynamic and responsive to changes in the house, instead of relying on the two preset times.
@hvorragend idea: maybe you could add an external entity that triggers CCA on update or change?
How would one go about doing this? should i create a new set of triggers (as described above) to control a boolean and use that boolean in the force immediate open / close?_ Just realise the last comment was address to hvorragend and not me, I was confused as to how I could possibly trigger the automation with an external entity
Just for the sake of completeness in the thread, I have managed to get this to work by adding the following as an additional action (with the default actions disabled in the blueprint):
if:
- condition: state
entity_id: binary_sensor.esphome_web_5a3d64_main_bed_sensor
state: "off"
then:
- service: cover.open_cover
metadata: {}
data: {}
target:
entity_id: cover.large_blinds
else:
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.esphome_web_5a3d64_main_bed_sensor
to: "off"
for:
hours: 0
minutes: 1
seconds: 30
timeout:
hours: 5
minutes: 0
seconds: 0
milliseconds: 0
- service: cover.open_cover
metadata: {}
data: {}
target:
entity_id: cover.large_blinds
With this the bleuprint will trigger at the Blinds up early time and either open the blinds or fall into "wait for trigger" loop that will open the blinds as soon as the occupancy sensor is clear, regardless of what time it is (or 5 hours after the early up time, when the loop times-out)
Hi, thanks again for the tons of work you have put in this blueprint and for your helkp with an issue I had previously.
I am having an issue with opening the blinds in the morning. I have set time up early at 5:30 and time up late at 8:30. I have not set brightnes control for the open/close function (only for shading). The open/close is controlled only by the set times (in the blueprint) and sun elevation.
I am not using the blueprint default actions as they were not working reliably for shading with my Shelly relays. Instead I am using the additional actions to set position to 100% or 0%, or for shading drive to eg 30%, delay afew seconds to allow the roller to arrive at the set position and then adjust the tilt by driving the oposite way for a few ms.
For opening in the morning (for some blinds) I have set a condition in the additional actions: "bed sensor" is clear. Now the good part is that the blinds do not open at 5:30 if someone is in bed. Other blinds where the bed condition is not implemented, open normally at the set time. However, after the bed sensor turns "clear" the blinds that depend on this sensor remain closed (even if the time is still between 5:30 and 8:30).
Basically I am trying to understand how often is the automation triggering and checking the bed sensor to decide if it should open the blinds or not. I know I could use the "resident" funstion for this but I do not like the fact that it will force close the blinds at any time during the day if the bed sensor reports "true / occupied".
Let me know if you need any traces etc. I am attaching the config here: