Skip to content

Commit

Permalink
chore: merge master
Browse files Browse the repository at this point in the history
Merge pull request #997 from kalkih/master
  • Loading branch information
akloeckner authored Aug 10, 2023
2 parents 4519de5 + 210fb4c commit edc6b90
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ daysUntilStale: 60
daysUntilClose: 14

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []
onlyLabels:
- to be confirmed
- More info needed
- invalid

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- bug
- pinned
- security
- "[Status] Maybe Later"
exemptLabels: []

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4.2.0
- uses: amannn/action-semantic-pull-request@v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,37 @@ state_map:
label: Detected
```

#### Showing additional info on the card

![изображение](https://user-images.githubusercontent.com/71872483/170584118-ef826b60-dce3-42ec-a005-0f467616cd37.png)

It is possible to show a state without displaying a graph for a sensor.
Imagine there are two CO-2 sensors & one humidity sensor; graphs are displayed for the CO-2 only, and the humidity is shown as a state only.
```
type: custom:mini-graph-card
entities:
- entity: sensor.xiaomi_cg_1_humidity
show_state: true
show_graph: false
- entity: sensor.xiaomi_cg_1_co2
color: green
show_state: false
name: CO2-1
- entity: sensor.xiaomi_cg_2_co2
color: orange
show_state: false
name: CO2-2
name: Humidity
hours_to_show: 4
points_per_hour: 60
show:
name: true
legend: true
icon: false
labels: true
```
This method may be also used to add a calculated value with it's own `aggregate_func` option.
## Development
Expand Down

0 comments on commit edc6b90

Please sign in to comment.