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

added onclick-handler to heading #101

Closed
wants to merge 6 commits into from

Conversation

wehrstedt
Copy link

This PR adds an onclick-handler to the heading section.

Configuration example:

type: 'custom:banner-card'
heading: "\U0001F6CB Wohnzimmer"
heading_entity:
  entity: switch.wohnzimmer
entities:
  - entity: light.wohnzimmer
    name: Licht
  - entity: cover.rollo_wohnzimmer_garten
    name: Rollo
  - entity: sensor.wohnzimmer_temperatursensor

Output when switch is active:
image

Output when switch is not active:
image

If you click on Wohnzimmer (btw Living Room), the switch will be toggled. But you can override the action as described in the readme.

Maximilian Wehrstedt and others added 6 commits February 2, 2021 18:37
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](npm/ini@v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [ssri](https://github.com/npm/ssri) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/latest/CHANGELOG.md)
- [Commits](npm/ssri@v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant