kiosko-plugin-homeassistant 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -1
- package/dist/index.js +979 -73
- package/docs/camera.png +0 -0
- package/docs/energy.png +0 -0
- package/docs/media.png +0 -0
- package/docs/people.png +0 -0
- package/kiosko-manifest.json +640 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# kiosko-plugin-homeassistant
|
|
2
2
|
|
|
3
|
-
Home Assistant on the panel, live over its WebSocket API: any entity in big with its history, lists of entities,
|
|
3
|
+
Home Assistant on the panel, live over its WebSocket API: any entity in big with its history, lists of entities, what needs you at home (doors left open, low batteries, leaks, the alarm), your cameras (with the doorbell), the energy flow, what's playing and who is home.
|
|
4
4
|
|
|
5
5
|
A plugin for [Kiosko](https://github.com/kiosko-lcd/kiosko), the widget mosaic for small USB LCD panels.
|
|
6
6
|
|
|
@@ -88,6 +88,75 @@ Uses: `homeassistant/states`.
|
|
|
88
88
|
| `batteryWarn` | number | `20` | Battery warning at |
|
|
89
89
|
| `batteryAlert` | number | `10` | Battery alert at |
|
|
90
90
|
|
|
91
|
+
### Camera — `homeassistant/camera`
|
|
92
|
+
|
|
93
|
+
The latest picture of a Home Assistant camera (Blink, Reolink, ONVIF…), refreshed every minute, with how old it is; with a motion sensor, a red mark while it sees someone, and it can take over its tile. A still, not live video.
|
|
94
|
+
|
|
95
|
+

|
|
96
|
+
|
|
97
|
+
Uses: `homeassistant/states`.
|
|
98
|
+
|
|
99
|
+
The picture is read from Home Assistant's camera proxy with the camera's own short-lived token (the one in its `entity_picture`, renewed by Home Assistant every few minutes): your long-lived token stays in the source. What the picture is depends on the camera: a fresh still for one that streams; for a battery camera like **Blink**, the last thumbnail it took (on motion, or when asked with Home Assistant's `blink.trigger_camera`), so the age tells how old it is. "Keep the tile while urgent" is off by default: turn it on to have the camera take over its tile while its motion sensor is on or for a minute after the doorbell rings. While someone moves or rings, the picture is read every 10 s.
|
|
100
|
+
|
|
101
|
+
| Option | Type | Default | |
|
|
102
|
+
|---|---|---|---|
|
|
103
|
+
| `entity` | string | `""` | Camera. Its id in Home Assistant: camera.something. |
|
|
104
|
+
| `name` | string | `""` | Name. Empty = the name in Home Assistant. |
|
|
105
|
+
| `showName` | boolean | `true` | Show the name |
|
|
106
|
+
| `showAge` | boolean | `true` | Show how old the picture is. Since the picture last changed. A battery camera (Blink) only takes a new one on motion or when asked. |
|
|
107
|
+
| `motion` | string | `""` | Motion sensor. Empty = binary_sensor.<camera>_motion if there is one (Blink names them so). |
|
|
108
|
+
| `doorbell` | string | `""` | Doorbell. An event entity (event.*) or a binary sensor: for a minute after it rings, a mark on the picture, and the camera takes the tile if allowed. |
|
|
109
|
+
| `fit` | `cover` \| `contain` | `"cover"` | Fit |
|
|
110
|
+
| `keep` | `center` \| `top` \| `bottom` | `"center"` | Keep in view. What filling crops last: the sky or the ground. |
|
|
111
|
+
| `dim` | number | `0` | Darken. Keeps a bright picture from outshining everything else. |
|
|
112
|
+
|
|
113
|
+
### Energy flow — `homeassistant/energy`
|
|
114
|
+
|
|
115
|
+
Where the power comes from and goes, now: the grid, the solar panels and the battery around the house, a line for every flow (thicker the more it carries, with dots running along it) and today's kWh from the Energy dashboard. A grid sensor is enough to start.
|
|
116
|
+
|
|
117
|
+

|
|
118
|
+
|
|
119
|
+
Uses: `homeassistant/states`. Today's energy is read from the statistics of Home Assistant's **Energy dashboard** (every 5 minutes, only when it is set up); the power sensors are the ones chosen here or, when none is, the ones set in the dashboard (Home Assistant 2025.12 and later).
|
|
120
|
+
|
|
121
|
+
| Option | Type | Default | |
|
|
122
|
+
|---|---|---|---|
|
|
123
|
+
| `grid` | string | `""` | Grid power. W or kW, positive while buying. Empty = the one in the Energy dashboard. |
|
|
124
|
+
| `gridExportPositive` | boolean | `false` | The grid sensor is positive while selling |
|
|
125
|
+
| `solar` | string | `""` | Solar power. Empty = the one in the Energy dashboard, or none. |
|
|
126
|
+
| `battery` | string | `""` | Battery power. Positive while discharging. Empty = the one in the Energy dashboard, or none. |
|
|
127
|
+
| `batteryChargePositive` | boolean | `false` | The battery sensor is positive while charging |
|
|
128
|
+
| `batteryLevel` | string | `""` | Battery level. Its %, shown in the battery. |
|
|
129
|
+
| `showToday` | boolean | `true` | Today's energy. From the Energy dashboard, under each part. |
|
|
130
|
+
| `moving` | boolean | `true` | Moving dots. Repaints the tile every second. |
|
|
131
|
+
|
|
132
|
+
### Now playing — `homeassistant/media`
|
|
133
|
+
|
|
134
|
+
What a Home Assistant media player is playing (the TV, Spotify on a speaker, a Chromecast, Sonos…): cover, title, artist, the app and how far it has got. Of several, the one playing. Hides itself while nothing plays.
|
|
135
|
+
|
|
136
|
+

|
|
137
|
+
|
|
138
|
+
Uses: `homeassistant/states`. The cover comes from Home Assistant's media player proxy, with the player's own short-lived token, and is read again only when the track changes.
|
|
139
|
+
|
|
140
|
+
| Option | Type | Default | |
|
|
141
|
+
|---|---|---|---|
|
|
142
|
+
| `entity` | string | `""` | Player. One, or several with patterns (media_player.*, !media_player.kitchen): the one playing is shown. Empty = all. |
|
|
143
|
+
| `showCover` | boolean | `true` | Show the cover |
|
|
144
|
+
| `showProgress` | boolean | `true` | Show how far it has got |
|
|
145
|
+
|
|
146
|
+
### Who is home — `homeassistant/people`
|
|
147
|
+
|
|
148
|
+
The people Home Assistant knows, with their photo: at home, away or in a zone of yours (Work, School), and since when.
|
|
149
|
+
|
|
150
|
+

|
|
151
|
+
|
|
152
|
+
Uses: `homeassistant/states`.
|
|
153
|
+
|
|
154
|
+
| Option | Type | Default | |
|
|
155
|
+
|---|---|---|---|
|
|
156
|
+
| `people` | list | `[]` | People. In this order. Empty = everyone. |
|
|
157
|
+
| `showSince` | boolean | `true` | Since when |
|
|
158
|
+
| `homeFirst` | boolean | `false` | Who is home first |
|
|
159
|
+
|
|
91
160
|
## Data sources
|
|
92
161
|
|
|
93
162
|
### Home Assistant — `homeassistant/states`
|