#Help with (chain roller) Blind automation

1 messages · Page 1 of 1 (latest)

fluid tusk
#

Hi Everyone,
I am new to writing automations for home assistant (and somewhat new to HA) and i am having trouble getting my head around the automation interface.
So i thought i would start with something simple, automate the bedroom blind.

Blind motor: Zemismart chain motor
Top Sensor: Ikea parasol
Bottom sensor Ikea Parasol

So my testing's has the up time at 29secons and the down time at 25 seconds.

The motor has up and down positions, but as i got it second hand i don't know (nor can i find anything to tell me how to set it with out a remote, which i don't have) but besides that i think having up and down sensors would make it fool proof.

Starting simple the code below is
if its 9am
AND
the DOWN blind sensor is CLOSED
THEN
open the blind.
If the open sensor triggers then stop the blind.

The part that is not working is the IF/then conditionals.
Also i am not sure why its putting the ID and not a the "nice name" in the code.

#

id: '1757466778630'
alias: Blind Up
description: ''
triggers:

  • trigger: time
    at: '09:00:00'
    weekday:
    • sun
    • mon
    • tue
    • wed
    • thu
    • fri
    • sat
      conditions:
  • condition: and
    conditions:
    • type: is_not_open
      condition: device
      device_id: 6ef7c7b830722d75493e3847f9c6d18b
      entity_id: 0a11632a7607de9992a4b218b4004c7f
      domain: binary_sensor
      actions:
  • if:
    • type: is_open
      condition: device
      device_id: cc2f5f515232c9cc9383dafdd8f169fe
      entity_id: a0cb43201856b909a2236167dd220978
      domain: binary_sensor
      then:
    • device_id: e2375ff7915490906abe5b22e64b8713
      domain: cover
      entity_id: 52cbab86b67d61f57c848b3156376d85
      type: open
    • if:
      • type: is_not_open
        condition: device
        device_id: cc2f5f515232c9cc9383dafdd8f169fe
        entity_id: a0cb43201856b909a2236167dd220978
        domain: binary_sensor
        then:
      • device_id: e2375ff7915490906abe5b22e64b8713
        domain: cover
        entity_id: 52cbab86b67d61f57c848b3156376d85
        type: stop
        mode: single
urban fableBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.