Can not set up an Automation

I have added some “covers” - Brunt blind engines - to HA and I can control them through the front page / Lovelace, but I am unable to create an Automation for them.

When I select the dropdown list under “Actions” in the Automations page none of the 4 blind motors appear.

Why might a device appear under Develop Tools / States, but not within Configuration / Devices or / Entities?

TIA

For me each cover appeared as a device, but you also could call a service to control them.

1 Like

Not all entities have a device, but for some reason the automation editor defaults to device triggers and actions.

Change the first drop down in the action block to ‘call service’, then set the service to cover.open (or close) and then set the entity_id to that of your blinds.

2 Likes

Many thanks @anon43302295 - very helpful. But could I be a nuisance and ask you to expand on that a bit? I have started to create an Automation as follows …

Name: Sitting Room Curtains (Open, SR)
Triggers: Sun / Sunrise
Conditions: n/a
Actions: Action Type: Call Service

I tried putting ``cover.stting_room_n.open` in the Service subsection, but that caused an error

Message malformed: Service cover.stting_room_n.open does not match format <domain>.<name> for dictionary value @ data['action'][0]['service']

If I just put cover.open no error comes up, but where would I define which blind I want to action?

TIA

No, cover.open is the service, cover.stting_room_n is the entity_id. You don’t try and blend the two together :slightly_smiling_face:

I don’t have covers so I’ve done a screenshot of the action of turning off a switch.

Select call service, select the service you want, then select the entity…

1 Like

I don’t have acess to my automations right now but normaly you would define it like this I think:

action:
  - service: cover.open_cover
    data:
      entity_id: cover.stting_room_n

Also is your entities name stting_room_n or sitting_room_n?

1 Like

Ha! Brilliant - it works.

I had to make one small change to what you said @anon43302295 (but that is understandable if you don’t have any covers), in that using cover.open didn’t bring up the next line where I could then type cover.sitting_room_n, but if I chose cover.close_cover instead it did.

Very happy now - hours of wasted time yesterday sorted in 15 minutes today! :grinning:

1 Like

Sorry - that was a typo on the forum, not within HA itself. :flushed: