home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.96k stars 7.28k forks source link

action: should be replaced to service: #34524

Open szabovin opened 2 months ago

szabovin commented 2 months ago

Feedback

The following code (same syntax as the example in the documentation) does not work:

cover:
  - platform: template
    covers:
      redony13:
        device_class: shutter
        friendly_name: "Redony 13"
        open_cover:
          action: script.redony13_fel
        close_cover:
          action: script.redony13_le
        stop_cover:
          action: script.redony13_stop

Gives the following error message: Invalid config for 'template' from integration 'cover' at configuration.yaml, line 84: Unable to determine action 'covers->redony13->open_cover->0', got None

According to ChatGPT, instead of action:, it should be a service: call. Indeed, it works well with service: calls under _opencover, _closecover and _stopcover.

cover:
  - platform: template
    covers:
      redony13:
        device_class: shutter
        friendly_name: "Redony 13"
        open_cover:
          service: script.redony13_fel
        close_cover:
          service: script.redony13_le
        stop_cover:
          service: script.redony13_stop

URL

https://www.home-assistant.io/integrations/cover.template/

Version

2024.8.3

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @phracturedblue, @tetienne, @home-assistant/core, mind taking a look at this feedback as it has been labeled with an integration (template) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `template` can trigger bot actions by commenting: - `@home-assistant close` Closes the feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign template` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.
github-actions[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

szabovin commented 1 week ago

👍

github-actions[bot] @.***> ezt írta (időpont: 2024. okt. 31., Csü 16:04):

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant.io/issues/34524#issuecomment-2450113676, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3UPJ4Q6Z2BOKD6KKVBQ66LZ6JBG5AVCNFSM6AAAAABNO4LIACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQGEYTGNRXGY . You are receiving this because you authored the thread.Message ID: @.***>