diff --git a/README.md b/README.md index 6a0a15f..890363e 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Templates allow you to output virtually any HTML you want to in the contents of |---|---| | triggerEntities | The array of entities to watch for state changes to determine if this sections displayTemplate should be re-rendered. | | displayTemplate | The template to send to Home Assistant to render. The results of the render will be displayed as the contents of this section in the module. | -| class | The CSS class name to add to the `
` surrounding this section of the module. | +| class | The CSS class name to add to the `
` surrounding this section of the module. This is a name you choose yourself, for example "HAValues". You can then style this section by adding a .HAvalues-section in custom.css. | #### Note @@ -140,6 +140,28 @@ This example pulls the info from a media player entity in Home Assistant. It on }, ``` +#### Simple example + +![Media](images/simpleExample.png) + +```javascript +{ + module: 'MMM-HomeAssistantDisplay', + position: 'top_right', + config: { + host: "192.168.1.10", + token: "..." + port: 8123, + useTLS: false, + class: "HAvalues", + sections: [{ + displayTemplate: ` + Post: {{states('sensor.postleverans')}}
+ }] + } +} +``` + #### Always Displayed with Complex Template diff --git a/images/simpleExample.png b/images/simpleExample.png new file mode 100644 index 0000000..151b0d4 Binary files /dev/null and b/images/simpleExample.png differ