Compare commits

..

10 Commits

Author SHA1 Message Date
Brian Towles
51a9aa5cc9 Merge pull request #42 from gonzonia/main
Some checks failed
Release Drafter / update_release_draft (push) Has been cancelled
Module was displaying even if template resolved to false
2025-03-13 20:45:29 -05:00
Brian Towles
50bfcae3e5 Merge pull request #35 from eltociear/patch-1
docs: update README.md
2025-03-13 20:44:12 -05:00
gonzonia
d5fb5308aa Update MMM-HomeAssistantDisplay.js
Fixed missing bracket
2025-03-13 20:51:16 -04:00
gonzonia
6e1d78e4bc Update MMM-HomeAssistantDisplay.js
Was showing the module despite template resolving to false. Adjusted the code to check differently and set this.displayModule accordingly.
2025-03-13 13:57:21 -04:00
gonzonia
d09d24436b Update .gitignore 2025-03-13 13:55:43 -04:00
Ikko Eltociear Ashimine
c1d4c6f95f docs: update README.md
Programatic -> Programmatic
2024-11-04 21:22:30 +09:00
Brian Towles
db03d5a5d3 Merge pull request #26 from wonderslug/dependabot/github_actions/release-drafter/release-drafter-6
Bump release-drafter/release-drafter from 5 to 6
2024-10-16 20:50:23 -05:00
Brian Towles
e87b360145 Clean up README 2024-10-16 20:45:08 -05:00
Brian Towles
6658734774 Fix issue with stylelint dev dependency 2024-10-16 20:41:53 -05:00
dependabot[bot]
f2e2869bb7 Bump release-drafter/release-drafter from 5 to 6
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5 to 6.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 06:09:46 +00:00
5 changed files with 24 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ jobs:
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml

3
.gitignore vendored
View File

@@ -3,4 +3,5 @@ uploads
npm-debug.log
package-lock.json
pm2.json
workspace.code-workspace
workspace.code-workspace
.DS_Store

View File

@@ -147,7 +147,13 @@ Module.register("MMM-HomeAssistantDisplay", {
if (payload.identifier === this.identifier) {
switch (notification) {
case "MODULE_DISPLAY_RENDERED":
this.displayModule = payload.render.toLowerCase() === "true" || payload.render.toLowerCase() === "on";
if (payload.render.toLowerCase() === "true" || payload.render.toLowerCase() === "on"){
this.displayModule = true;
}else {
this.displayModule = false;
}
this.updateDom();
break;
case "CHANGED_STATE":

View File

@@ -15,7 +15,7 @@ Templates allow you to output virtually any HTML you want to in the contents of
* [Simple Hiding](#simple-hiding)
* [Media Info when Playing](#media-info-when-playing)
* [Always Displayed with Complex Template](#always-displayed-with-complex-template)
* [Programatic Sections](#programatic-sections)
* [Programmatic Sections](#programmatic-sections)
* [License](#license)
### Features:
@@ -28,8 +28,15 @@ Templates allow you to output virtually any HTML you want to in the contents of
* Material Design icons embedded in module to use with output.
### How to use
1. Clone this repo into your Magic Mirrors modules directory with the following command: git clone https://github.com/wonderslug/MMM-HomeAssistantDisplay.git.
2. Install all the npm modules with *npm install*.
1. Clone this repo into your Magic Mirrors modules directory with the following command:
```bash
git clone https://github.com/wonderslug/MMM-HomeAssistantDisplay.git
```
.
2. Install all the npm modules with:
```bash
npm install
```
3. Update your Magic Mirror Configto setup a Module Instance. See the configuration options and examples below.
### Configuration Options
@@ -212,9 +219,9 @@ This example will show a complex template logic that is always displayed because
```
#### Programatic Sections
#### Programmatic Sections
Programatic setting of sections from long list for always displayed module:
Programmatic setting of sections from long list for always displayed module:
This shows how you can use code to set the configuration for the module. It takes a long list of entities to watch and sets each of them as a section of the module to display only when opened.

View File

@@ -33,8 +33,8 @@
"grunt-markdownlint": "latest",
"grunt-stylelint": "latest",
"grunt-yamllint": "latest",
"stylelint": "^14.16.1",
"stylelint-config-standard": "^34.0.0",
"stylelint": "latest",
"stylelint-config-standard": "latest",
"time-grunt": "latest"
}
}