Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbiev authored Dec 24, 2024
2 parents 839fc41 + e15d870 commit 3b09ffd
Show file tree
Hide file tree
Showing 246 changed files with 10,826 additions and 9,943 deletions.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

**Related Logs** (can be found in the browser-console (F12))
Add related logs for the problem

**Related Card Config**
Add the card config from `ui-lovelace.yaml` with the related problem

```yaml
paste the yaml code here
```
28 changes: 28 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--
You are amazing! Thanks for contributing to our project!
Please, DO NOT DELETE ANY TEXT from this template! (unless instructed).
-->

## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->

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

## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->

- [ ] The code change is tested and works locally.
- [ ] There is no commented out code in this PR.
- [ ] I have followed the [contribution guidelines](https://github.com/UI-Lovelace-Minimalist/UI/blob/main/.github/CONTRIBUTING.md)
- [ ] 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.
8 changes: 4 additions & 4 deletions .github/workflows/automatic-custom-card-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
push:
# Should only run on "dev" when new cards are submitted via PR
branches: ["main"]
paths: ["custom_cards/*/README.md"]
paths: ["custom_cards/*/README.md", "docs/"]

jobs:
docit:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
- name: "Copy and rename README.md files"
Expand All @@ -24,14 +24,14 @@ jobs:
cp "${dirname}/$filename" "./docs/usage/custom_cards/${foldername}.md"
done
- name: "Find and replace asset paths"
uses: "jacobtomlinson/gha-find-replace@v2"
uses: "jacobtomlinson/gha-find-replace@v3"
with:
find: "../../docs/assets/img"
replace: "../../assets/img"
include: "docs/usage/custom_cards/**"
regex: true
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v3"
uses: "peter-evans/create-pull-request@v5"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
branch: "automated_custom_card_docs"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "⤵️ Check out code from GitHub"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
- name: "⚙️ Set up Python"
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v4"
with:
python-version: 3.8
- name: "⚙️ Set up Ruby"
Expand All @@ -22,4 +22,4 @@ jobs:
ruby-version: 2.7
bundler-cache: true
- name: "\U0001F680 Run pre-commit"
uses: "pre-commit/action@v2.0.3"
uses: "pre-commit/action@v3.0.0"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: "Checkout repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"

# Initializes the CodeQL tools for scanning.
- name: "Initialize CodeQL"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hacs-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "checkout"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
- name: "validation"
uses: "home-assistant/actions/hassfest@master"

Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "checkout"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
- name: "validation"
uses: "hacs/action@main"
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "⤵️ Check out code from GitHub"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
- name: "\U0001F680 Run Labeler"
uses: "crazy-max/ghaction-github-labeler@v3.1.1"
uses: "crazy-max/ghaction-github-labeler@v4"
with:
skip-delete: false
8 changes: 5 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
deploy:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
- uses: "actions/checkout@v3"
with:
python-version: "3.x"
node-version: "16.x"
- uses: "actions/setup-python@v4"
with:
python-version: "3.11"
- run: "pip install mkdocs-material mkdocs-awesome-pages-plugin"
- run: "mkdocs gh-deploy --force"
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Run release-drafter"
uses: "release-drafter/release-drafter@v5.15.0"
uses: "release-drafter/release-drafter@v5"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"

- name: "Get version"
id: "version"
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ repos:
- id: "pyupgrade"
args: ["--py39-plus"]

- repo: "https://github.com/pre-commit/mirrors-isort"
rev: "v5.10.1"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: "isort"
- id: isort

- repo: "https://github.com/psf/black"
rev: "22.3.0"
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
![hacs installs](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Flauwbier.nl%2Fhacs%2Fui_lovelace_minimalist)
![Downloads](https://img.shields.io/github/downloads/UI-Lovelace-Minimalist/UI/total)

> [!IMPORTANT]
> Looking for New Maintainers!
>
> This project is in need of new maintainers! The current maintainers are no longer actively working on it, and without fresh leadership, we may be forced to shut down the project and its associated Discord server.
>
> If you're passionate about this project and would like to take over its development and community management, we’d love to hear from you!
>
> - Join us on Discord to discuss further: [Thread Message](https://discord.com/channels/923363055444832296/928986459975876668/1314292139139534979)
> - Or reach out on GitHub Discussions: [GitHub discussion](https://github.com/UI-Lovelace-Minimalist/UI/discussions/1560)
>
> Thank you for considering helping keep this project alive and thriving! 🙌
It's kind of hard to explain what this is, so let's call it a "theme" (in quotation marks). But one thing is for sure, it is very nice! Taking the exceptional work of tben as a basis, this repository is aimed to ease installation and maintenance of his wonderful work. You can use this interpretation of a SmartHomeUI more or less like a theme in HomeAssistant.

<img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_home.png" width="200"> <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_temperature.png" width="200"> <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_consumption.png" width="200"> <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_localisation.png" width="200">
Expand Down
112 changes: 112 additions & 0 deletions custom_cards/custom_card_alarm_time/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
---
title: Alarm Time Custom-card
---

<!-- markdownlint-disable MD046 -->

# Custom-card "Alarm Time Card"

The `card_alarm_time` you can control a input_datetime entity and a boolean.
This card is useful for setting alarms (e.g. wakeup alarm), as you can modify the time and toggle the state of the alarm from one card.

## Credits

Author: benbur - 2023
Version: 1.0.0

This is built largely on top of the original Input_Datetime Card:
Author: sildehoop - 2022
Version: 1.0.0

## Changelog

<details>
<summary>1.0.0</summary>
Initial Release
</details>

## Variables

<table>
<tr>
<th>Variable</th>
<th>Example</th>
<th>Required</th>
<th>Default</th>
<th>Explanation</th>
</tr>
<tr>
<td>ulm_card_alarm_time_name</td>
<td>'Morning Alarm'</td>
<td>no</td>
<td></td>
<td>Set Custom Name</td>
</tr>
<tr>
<td>ulm_card_alarm_time_icon</td>
<td>'mdi:alarm'</td>
<td>no</td>
<td></td>
<td>Set Custom Icon</td>
</tr>
<tr>
<td>ulm_card_alarm_time_color</td>
<td>'green'</td>
<td>no</td>
<td>'blue'</td>
<td>Set Custom Color for Card Elements</td>
</tr>
<tr>
<td>ulm_card_alarm_time_force_background_color</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td>Force Background Color in Light Mode/td>
</tr>
<tr>
<td>ulm_card_alarm_time_collapse</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td>Make card collapsible when off</td>
</tr>
<tr>
<td>ulm_card_alarm_time_horizontal</td>
<td>true</td>
<td>no</td>
<td>false</td>
<td>Horizontal Mode for the Card</td>
</tr>
<tr>
<td>ulm_card_alarm_time_step</td>
<td>'30'</td>
<td>no</td>
<td>15</td>
<td>Set Adjust Time (minutes)</td>
</tr>
</table>

## Usage

```yaml
- type: "custom:button-card"
template: card_alarm_time
entity: input_boolean.morning_alarm_toggle
variables:
ulm_card_alarm_time_datetime: input_datetime.morning_alarm_time
ulm_card_alarm_time_horizontal: true
ulm_card_alarm_time_collapse: true
```
## Requirements
Input DateTime Helper
Input Boolean
## Template code
??? note "Template Code"
```yaml title="custom_card_alarm_time.yaml"
--8<-- "custom_cards/custom_card_alarm_time/card_alarm_time.yaml"
```
Loading

0 comments on commit 3b09ffd

Please sign in to comment.