Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to call script with custom fields/service_data to scene pills #1287

Conversation

finder39
Copy link
Contributor

Release v1.3.4

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

This PR allows the ability to have the scenes pill call a script service with custom fields/service_data.

Example:

      - type: custom:button-card
        template: card_scenes_welcome
        variables:
          entity_1:
            entity_id: scene.bright_bedroom
            color: yellow
          entity_2:
            entity_id: script.goodnight
            color: blue
            service_data:
              entity_id: script.goodnight
              guests: >-
                [[[ return states['sensor.guest_mode'].state; ]]]
              transition: 5

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • I have followed the contribution guidelines
    • This PR is for a custom-card or documentation change and therefore directed to the main branch.
    • This PR is for a official card or any other directly to the integration related change and therefore directed to the release branch.

@finder39 finder39 changed the title Merge pull request #1277 from UI-Lovelace-Minimalist/release Add ability to call script with custom fields/service_data to scene pills Apr 27, 2023
@basbruss basbruss merged commit c1e5ec6 into UI-Lovelace-Minimalist:release May 11, 2023
@finder39 finder39 deleted the scenes-pill-script-with-service_data branch May 11, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants