@iobroker/dm-utils 1.0.5 → 1.0.6
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 +4 -0
- package/build/types/base.d.ts +3 -1
- package/build/types/common.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -301,6 +301,10 @@ This method returns a promise that resolves to a `ProgressDialog` object.
|
|
|
301
301
|
### **WORK IN PROGRESS**
|
|
302
302
|
-->
|
|
303
303
|
## Changelog
|
|
304
|
+
### 1.0.6 (2025-01-14)
|
|
305
|
+
|
|
306
|
+
* (@GermanBluefox) Added the connection type indication
|
|
307
|
+
|
|
304
308
|
### 1.0.5 (2025-01-11)
|
|
305
309
|
|
|
306
310
|
* (@GermanBluefox) Added action ENABLE_DISABLE and `enabled` status
|
package/build/types/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionContext, ErrorResponse, MessageContext } from '..';
|
|
1
|
+
import type { ActionContext, ConfigConnectionType, ErrorResponse, MessageContext } from '..';
|
|
2
2
|
import type { ApiVersion, DeviceRefresh, DeviceStatus, RetVal } from './common';
|
|
3
3
|
type ActionType = 'api' | 'adapter';
|
|
4
4
|
export type Color = 'primary' | 'secondary' | (string & {});
|
|
@@ -111,6 +111,8 @@ export interface DeviceInfo<T extends ActionType = 'api'> {
|
|
|
111
111
|
/** Background color of card header (you can use primary, secondary or color rgb value or hex) */
|
|
112
112
|
backgroundColor?: Color;
|
|
113
113
|
status?: DeviceStatus | DeviceStatus[];
|
|
114
|
+
/** Connection type, how the device is connected */
|
|
115
|
+
connectionType?: ConfigConnectionType;
|
|
114
116
|
/** If this flag is true or false, the according indication will be shown. Additionally, if ACTIONS.ENABLE_DISABLE is implemented, this action will be sent to backend by clicking on this indication */
|
|
115
117
|
enabled?: boolean;
|
|
116
118
|
/** List of actions on the card */
|
package/build/types/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type ApiVersion = 'v1';
|
|
2
|
+
export type ConfigConnectionType = 'lan' | 'wifi' | 'bluetooth' | 'thread' | 'z-wave' | 'zigbee' | 'other';
|
|
2
3
|
export type ConfigIconType = 'add' | 'backlight' | 'delete' | 'dimmer' | 'edit' | 'group' | 'identify' | 'info' | 'light' | 'lines' | 'next' | 'pair' | 'pause' | 'play' | 'previous' | 'qrcode' | 'refresh' | 'search' | 'settings' | 'socket' | 'stop' | 'unpair' | 'user' | string;
|
|
3
4
|
export type DeviceStatus = 'connected' | 'disconnected' | {
|
|
4
5
|
battery?: number | boolean | 'charging' | string;
|