New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iobroker.device-watcher

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.device-watcher - npm Package Compare versions

Comparing version 2.2.2 to 2.3.0

5

admin/i18n/de/translations.json

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Erhalten Sie eine regelmäßige Nachricht mit einer Übersicht aller schwachen Batteriegeräte",
"From what % battery is considered low": "Ab wie viel % gilt der Akku als schwach"
"From what % battery is considered low": "Ab wie viel % gilt der Akku als schwach",
"Ignore in main lists": "In Hauptlisten ignorieren",
"Ignore in Own lists per adapter": "Ignorieren in Eigene Listen pro Adapter",
"Ignore in lists per adapter": "In Listen pro Adapter ignorieren"
}

@@ -98,3 +98,6 @@ {

"Get a regular message with an overview all low battery devices": "Get a regular message with an overview all low battery devices",
"From what % battery is considered low": "From what % battery is considered low"
"From what % battery is considered low": "From what % battery is considered low",
"Ignore in main lists": "Ignore in main lists",
"Ignore in Own lists per adapter": "Ignore in Own lists per adapter",
"Ignore in lists per adapter": "Ignore in lists per adapter"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Reciba un mensaje regular con una descripción general de todos los dispositivos con batería baja",
"From what % battery is considered low": "A partir de qué % de batería se considera bajo"
"From what % battery is considered low": "A partir de qué % de batería se considera bajo",
"Ignore in main lists": "Ignorar en las listas principales",
"Ignore in Own lists per adapter": "Ignorar en Listas propias por adaptador",
"Ignore in lists per adapter": "Ignorar en listas por adaptador"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Recevez un message régulier avec un aperçu de tous les appareils à batterie faible",
"From what % battery is considered low": "A partir de quel % la batterie est considérée comme faible"
"From what % battery is considered low": "A partir de quel % la batterie est considérée comme faible",
"Ignore in main lists": "Ignorer dans les listes principales",
"Ignore in Own lists per adapter": "Ignorer dans les listes propres par adaptateur",
"Ignore in lists per adapter": "Ignorer dans les listes par adaptateur"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Ricevi un messaggio regolare con una panoramica di tutti i dispositivi con batteria scarica",
"From what % battery is considered low": "Da quale % la batteria è considerata scarica"
"From what % battery is considered low": "Da quale % la batteria è considerata scarica",
"Ignore in main lists": "Ignora nelle liste principali",
"Ignore in Own lists per adapter": "Ignora negli elenchi Propri per adattatore",
"Ignore in lists per adapter": "Ignora negli elenchi per adattatore"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Ontvang regelmatig een bericht met een overzicht van alle bijna lege apparaten",
"From what % battery is considered low": "Van welk % batterij als laag wordt beschouwd"
"From what % battery is considered low": "Van welk % batterij als laag wordt beschouwd",
"Ignore in main lists": "Negeren in hoofdlijsten",
"Ignore in Own lists per adapter": "Negeren in Eigen lijsten per adapter",
"Ignore in lists per adapter": "Negeren in lijsten per adapter"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Otrzymuj regularne wiadomości z przeglądem wszystkich urządzeń o niskim poziomie baterii",
"From what % battery is considered low": "Od jakiego % baterii uważa się za niski"
"From what % battery is considered low": "Od jakiego % baterii uważa się za niski",
"Ignore in main lists": "Ignoruj ​​na listach głównych",
"Ignore in Own lists per adapter": "Ignoruj ​​na własnych listach na adapter",
"Ignore in lists per adapter": "Ignoruj ​​na listach według adaptera"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Receba uma mensagem regular com uma visão geral de todos os dispositivos com bateria fraca",
"From what % battery is considered low": "A partir de que % a bateria é considerada fraca"
"From what % battery is considered low": "A partir de que % a bateria é considerada fraca",
"Ignore in main lists": "Ignorar nas listas principais",
"Ignore in Own lists per adapter": "Ignorar nas próprias listas por adaptador",
"Ignore in lists per adapter": "Ignorar nas listas por adaptador"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Получайте регулярное сообщение с обзором всех устройств с низким зарядом батареи",
"From what % battery is considered low": "С какого % батарея считается разряженной"
"From what % battery is considered low": "С какого % батарея считается разряженной",
"Ignore in main lists": "Игнорировать в основных списках",
"Ignore in Own lists per adapter": "Игнорировать в собственных списках на адаптер",
"Ignore in lists per adapter": "Игнорировать в списках на адаптер"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "Отримуйте регулярне повідомлення з оглядом усіх пристроїв із розрядженим акумулятором",
"From what % battery is considered low": "Від якого % батарея вважається розрядженою"
"From what % battery is considered low": "Від якого % батарея вважається розрядженою",
"Ignore in main lists": "Ігнорувати в основних списках",
"Ignore in Own lists per adapter": "Ігнорувати у власних списках на адаптер",
"Ignore in lists per adapter": "Ігнорувати в списках на адаптер"
}

@@ -102,3 +102,6 @@ {

"Get a regular message with an overview all low battery devices": "获取包含所有低电量设备概览的常规消息",
"From what % battery is considered low": "从什么百分比电池被认为是低"
"From what % battery is considered low": "从什么百分比电池被认为是低",
"Ignore in main lists": "在主列表中忽略",
"Ignore in Own lists per adapter": "在每个适配器自己的列表中忽略",
"Ignore in lists per adapter": "在每个适配器的列表中忽略"
}

28

admin/jsonConfig.json

@@ -56,2 +56,9 @@ {

},
"eusecDevices": {
"type": "checkbox",
"sm": 6,
"md": 6,
"lg": 3,
"label": "euSec"
},
"fritzdectDevices": {

@@ -946,6 +953,13 @@ "type": "checkbox",

"type": "checkbox",
"title": "Ignor in lists",
"title": "Ignore in main lists",
"attr": "checkIgnorLists",
"width": "10%",
"alsoDependsOn": ["devices"]
},
{
"type": "checkbox",
"title": "Ignore in lists per adapter",
"attr": "checkIgnorAdapterLists",
"width": "10%",
"alsoDependsOn": ["devices"]
}

@@ -1123,2 +1137,14 @@ ]

},
"eusecMaxMinutes": {
"type": "number",
"min": -1,
"max": 100000,
"sm": 6,
"md": 6,
"lg": 3,
"label": "euSec",
"help": "in minutes",
"hidden": "!data.eusecDevices",
"hideOnlyControl": false
},
"fritzdectMaxMinutes": {

@@ -1125,0 +1151,0 @@ "type": "number",

{
"common": {
"name": "device-watcher",
"version": "2.2.2",
"version": "2.3.0",
"news": {
"2.3.0": {
"en": "sorting for device selection in the blacklist added\nDevices can now also be blacklisted in adapter own list\nbooleans for lowbat, offline and upgradable added\neuSec adapter added ([#73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73))",
"de": "sortierung für geräteauswahl in der blacklist hinzugefügt\nGeräte können jetzt auch in Adapter-Eigenliste schwarz aufgeführt werden\nbooleans für lowbat, offline und aufrüstbar hinzugefügt\neuSec Adapter hinzugefügt #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"ru": "сортировка для выбора устройства в черном списке добавлена\nУстройства теперь также могут быть черный список в списке адаптеров\nbooleans для lowbat, offline и upgradable добавлены\neuSec адаптер добавлен #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"pt": "classificação para seleção de dispositivos na lista negra adicionada\nDispositivos agora também podem ser listados na lista própria do adaptador\nbooleanos para baixobat, off-line e upgradable adicionado\nadaptador euSec adicionado #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"nl": "materiaal in de zwarte lijst toegevoegd\nDe slachtoffers kunnen nu ook zwart op wit staan in een eigen lijst\nbooleans voor laagbat, offline en upgradable toegevoegd\nquality over Quantity (QoQ) Releases Vertaling:",
"fr": "tri pour la sélection des appareils dans la liste noire ajoutée\nLes appareils peuvent maintenant être également noirlistés dans la liste d'adaptateurs propre\nbooléens pour faible teneur, hors ligne et dégradable ajouté\nadaptateur euSec ajouté #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"it": "selezione del dispositivo nella lista nera aggiunto\nI dispositivi possono ora anche essere blacklist nella propria lista adattatore\nbooleans per basso, offline e aggiornabile aggiunto\nadattatore euSec aggiunto #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"es": "clasificación para la selección de dispositivos en la lista negra\nLos dispositivos también pueden ser enlistados en la lista de adaptadores\nbooleanos para bajabat, sin conexión y añadida\neuSec adapter added #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"pl": "dobór urządzenia w czarnej liście dodał sortowanie do wyboru urządzenia\nUrządzenia mogą być również czarne w wersji adapterowej\nbooleanzy dla niskopodłogowej, offline i upgradable dodać\ndodarzenie euSec dodaje #73 (https:/github.com/ciddi89/ioBroker,device-watcher/issues/73)",
"uk": "сортування для вибору пристрою в чорному списку\nПристрої тепер також можуть бути чорними у списку адаптерів\nболеани для негабариту, автономної та розширеної доданої\neuSec адаптер додано #[73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73)",
"zh-cn": "黑名单中选用装置的类型\n现在也可能被黑名单人黑名单,以适应者自己的名单。\n低巴特、径流和降解的诱因\n用户增加了第[73]号(http://github.com/ciddi89/ioBroker.device-watcher/issues/73)"
},
"2.2.2": {

@@ -83,15 +96,2 @@ "en": "some translation added\ndatapoints will be written in intervall\nimprovements of lists\nsome other small improvements",

"zh-cn": "电池清单的附加地位\nb 现仍在列入电池清单的浮动装置\n翻译的小改进\n时限:你可以使用0.而不是1-1(即新标准)\nb. 改进适应人员名\n固定问题[第66](http://github.com/ciddi89/ioBroker.device-watcher/issues/66)和[#67](http://github.com/ciddi89/Broker.device-watcher/issues/67)\n修理黑名单通知\n黑名单目标的新增处理"
},
"2.0.1": {
"en": "If the device is offline, set signal strength to '0%'\nIf the device is offline, set battery to ' - '\nrepair some small issues in the lists",
"de": "Ist das Gerät offline, setzen Sie Signalstärke auf 0%\nWenn das Gerät offline ist, setzen Sie Batterie auf ' - '\neinige kleine probleme in den listen reparieren",
"ru": "Если устройство оффлайн, установите силу сигнала до 0%\nЕсли устройство оффлайн, установите аккумулятор в ' - '\nотремонтировать некоторые небольшие проблемы в списках",
"pt": "Se o dispositivo estiver offline, defina a força do sinal para 0%\nSe o dispositivo estiver offline, configure a bateria para ' - '\nreparar alguns pequenos problemas nas listas",
"nl": "Als het apparaat offline is, zet een signaalstilstand op 0%\nAls het apparaat offline is, zet dan batterij op '\nrepareer wat kleine kwesties in de lijst",
"fr": "Si l'appareil est hors ligne, définir la résistance du signal à 0%\nSi l'appareil est hors ligne, régler la batterie à ' - '\nréparer quelques petits problèmes dans les listes",
"it": "Se il dispositivo è offline, impostare la forza del segnale a 0%\nSe il dispositivo è offline, impostare la batteria a ' - '\nriparare alcuni piccoli problemi nelle liste",
"es": "Si el dispositivo está fuera de línea, establece la fuerza de señal al 0%\nSi el dispositivo está fuera de línea, establece la batería a ' - '\nreparar algunas pequeñas cuestiones en las listas",
"pl": "Jeśli urządzenie jest offline, ustawia siłę sygnału do 0%\nJeśli urządzenie jest wycinane, ustawiono baterię do '- '\nwyremontowano drobne problemy w listach",
"uk": "Якщо пристрій вимкнено, встановлюється міцність сигналу на 0%\nЯкщо пристрій вимкнено, встановіть акумулятор до ' - '\nремонт деяких невеликих питань у переліках",
"zh-cn": "如果装置落空,信号强度达到0%\n如果装置不线,便将电池到该地。\n在名单中修理一些小型问题"
}

@@ -191,2 +191,4 @@ },

"esphomeMaxMinutes": 0,
"eusecDevices": false,
"eusecMaxMinutes": 0,
"fritzdectDevices": false,

@@ -377,2 +379,27 @@ "fritzdectMaxMinutes": 0,

{
"_id": "oneDeviceOffline",
"type": "state",
"common": {
"name": {
"en": "Is one device with offline",
"de": "Ist ein Gerät mit Offline",
"ru": "Это одно устройство с offline",
"pt": "É um dispositivo com offline",
"nl": "Is een apparaat met offline",
"fr": "Est un appareil avec hors ligne",
"it": "È un dispositivo con offline",
"es": "Es un dispositivo sin conexión",
"pl": "Jest to jeden urządzenie z offlinem",
"uk": "Є один пристрій з автономним",
"zh-cn": "一处有线装置"
},
"type": "boolean",
"role": "state",
"read": true,
"write": false,
"def": false
},
"native": {}
},
{
"_id": "listAll",

@@ -539,2 +566,27 @@ "type": "state",

{
"_id": "oneDeviceLowBat",
"type": "state",
"common": {
"name": {
"en": "Is one device with low battery",
"de": "Ist ein Gerät mit niedrigem Akku",
"ru": "Один прибор с низкой батареей",
"pt": "É um dispositivo com bateria baixa",
"nl": "Is een apparaat met lage batterijen",
"fr": "Est un appareil avec batterie basse",
"it": "È un dispositivo con batteria bassa",
"es": "Es un dispositivo con batería baja",
"pl": "Jest to jeden urządzenie z niską baterią",
"uk": "Є одним пристроєм з низьких акумуляторів",
"zh-cn": "低电池的装置"
},
"type": "boolean",
"role": "state",
"read": true,
"write": false,
"def": false
},
"native": {}
},
{
"_id": "lastCheck",

@@ -632,4 +684,29 @@ "type": "state",

"native": {}
},
{
"_id": "oneDeviceUpdatable",
"type": "state",
"common": {
"name": {
"en": "Is one device updatable",
"de": "Ist ein Gerät aufnehmbar",
"ru": "Одно устройство обновляется",
"pt": "É um dispositivo updatable",
"nl": "Is een apparaat updat",
"fr": "Est-ce qu'un appareil est indéfectible",
"it": "È un dispositivo updatable",
"es": "Es un dispositivo actualizado",
"pl": "Jest to jedno urządzenie updatable",
"uk": "Є одним пристроєм",
"zh-cn": "一台装置"
},
"type": "boolean",
"role": "state",
"read": true,
"write": false,
"def": false
},
"native": {}
}
]
}

@@ -55,2 +55,12 @@ // arrays of supported adapters

},
eusec: {
Selektor: 'eusec.*.software_version',
adapterID: 'eusec',
adapter: 'euSec',
battery: '.battery',
rssiState: '.wifi_rssi',
reach: '.connection',
isLowBat: '.battery_low',
id: '.name',
},
fritzdect: {

@@ -57,0 +67,0 @@ Selektor: 'fritzdect.*.present',

{
"name": "iobroker.device-watcher",
"version": "2.2.2",
"version": "2.3.0",
"description": "Watchdog for devices",

@@ -36,3 +36,3 @@ "author": {

"@types/mocha": "^10.0.1",
"@types/node": "^18.11.10",
"@types/node": "^18.11.18",
"@types/node-schedule": "^2.1.0",

@@ -44,12 +44,12 @@ "@types/proxyquire": "^1.3.28",

"chai-as-promised": "^7.1.1",
"eslint": "^8.28.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"mocha": "^10.1.0",
"mocha": "^10.2.0",
"node-schedule": "^2.1.0",
"prettier": "^2.8.0",
"prettier": "^2.8.1",
"proxyquire": "^2.1.3",
"sinon": "^15.0.0",
"sinon": "^15.0.1",
"sinon-chai": "^3.7.0",
"typescript": "~4.9.3"
"typescript": "~4.9.4"
},

@@ -56,0 +56,0 @@ "main": "main.js",

@@ -40,16 +40,110 @@ ![Logo](admin/device-watcher.png)

This is a watchdog for devices. The adapter looks for the rssi/link quality and battery states and create JSON & HTML lists of them (devices with battery, devices with low battery, devices with link quality, devices offline and devices all) and count the devices in the same categories. For example you can use the lists and states for Grafana, Jarvis etc.
This is a watchdog for devices. The adapter looks for the different information about the datapoints and create JSON & HTML lists of them:
**Supported adapters:**
- devices with battery,
- devices with low battery,
- devices with link quality,
- updates for devices,
- devices offline and
- all devices
| - Alexa2<br>- Ble<br>- Deconz<br>- Enocean<br>- ESPHome<br>- FritzDect<br>- HAM<br>- Harmony<br>- HmiP<br>- Homematic<br>- HS100<br>- Hue<br>- Hue Extended<br>- Jeelink | - Lupusec<br>- MaxCube<br>- Meross<br>- MiHome<br>- MiHome Vacuum<br>- Netatmo<br>- Nuki Extended<br>- NUT<br>- Ping<br>- Roomba<br>- Shelly<br>- Sonoff<br>- Sonos<br>- Switchbot Ble | - Tado<br>- Tradfri<br>- Unifi<br>- WLED<br>- Yeelight<br>- Zigbee<br>- Zigbee2MQTT<br>- Zwave |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
It's also counting them in the same categories. You can use the lists and states for Grafana, Jarvis etc for example.
**If one adapter is missing, feel free to open an [issue](https://github.com/ciddi89/ioBroker.device-watcher/issues/new/choose) with request to add it.**
### Supported adapters:
The adapter has also the option to send notifications if the number of offline devices are changed and to send you a notification if devices has a low battery state (e.g. 30%). You can choose the value for the battery notification and on which days you want the notification for low batteries.
<table>
<tr>
<td>Alexa2</td>
<td>APC UPS</td>
<td>Ble</td>
</tr>
<tr>
<td>Deconz</td>
<td>Enocean</td>
<td>ESP Home</td>
</tr>
<tr>
<td>FritzDect</td>
<td>fullyBrowser</td>
<td>Harmony</td>
</tr>
<tr>
<td>Ham</td>
<td>Homematic IP</td>
<td>Homematic RPC</td>
</tr>
<tr>
<td>HS100</td>
<td>Philips Hue</td>
<td>Philips Hue Extended</td>
</tr>
<tr>
<td>Innogy Smarthome</td>
<td>Jeelink</td>
<td>Lupusec</td>
</tr>
<tr>
<td>Max! Cube</td>
<td>Meross</td>
<td>MiHome</td>
</tr>
<tr>
<td>MiHome Vacuum</td>
<td>MQTT Client Zigbee2Mqtt</td>
<td>MQTT Nuki</td>
</tr>
<tr>
<td>MusicCast</td>
<td>Netatmo</td>
<td>Nuki Extended</td>
</tr>
<tr>
<td>Nut</td>
<td>Ping</td>
<td>Roomba</td>
</tr>
<tr>
<td>Shelly</td>
<td>Sonoff</td>
<td>Sonos</td>
</tr>
<tr>
<td>Sureflap</td>
<td>Switchbot Ble</td>
<td>Tado</td>
</tr>
<tr>
<td>Tapo</td>
<td>Tradfri</td>
<td>Unifi</td>
</tr>
<tr>
<td>Wled</td>
<td>Yeelight</td>
<td>Zigbee</td>
</tr>
<tr>
<td>Zigbee2MQTT</td>
<td>Zwave</td>
<td></td>
</tr>
</table>
Currently supported notification services are:
A list with more information about the supported adapters can be found here: [in German](docs/de/listSupportAdapter.md) or [in English](docs/en/listSupportAdapter.md).</br>
**If one adapter is missing, feel free to open an request [issue](https://github.com/ciddi89/ioBroker.device-watcher/issues/new/choose) to add it.**
- Telegram (with support of Chat-ID for groupchats)
### Notifications:
The adapter has different possibilities to send notifications:
- A device is no longer reachable or reachable again
- A device has reached the low battery level or the low bat state is true
- When an update is available for a device (shelly and unifi)
- Time based a list of offline devices
- Time based a list of low batterie devices
- Time based a list of devices which can be updated
### Currently supported notification services are:
- Telegram
- Pushover

@@ -63,17 +157,13 @@ - WhatsApp

If you found a bug or you have an improvement suggestion, feel free to open an issue.
### Blacklist
If you don't want a specifice device in the list, you can add it in the blacklist and the adapter will ignore it.
Is it neccessary to ignore a specifice device, you can add it in the blacklist and the device-watcher will ignore it.
It's possible to select:
![add_blacklist.png](admin/images/add_blacklist.png)
- Ignore in notifications
- Ignore in main list
- Ignore in adapter own list
### Example images of Pushover notification:
### Here are some images how the lists can be look like in Grafana:
![noti_push.jpeg](admin/images/noti_push.jpeg)
![noti_push2.jpeg](admin/images/noti_push2.jpeg)
### Here are some images how the lists look:
![list1.png](admin/images/list1.png)

@@ -83,8 +173,2 @@ ![list2.png](admin/images/list2.png)

## To-Do
- [ ] clean up the code
- [ ] add support for reaction on state-changes
- [ ] send offline text only from the device that goes offline
## Changelog

@@ -96,2 +180,9 @@

-->
### 2.3.0 (2023-01-03)
- (ciddi89) sorting for device selection in the blacklist added
- (ciddi89) Devices can now also be blacklisted in adapter own list
- (ciddi89) booleans for lowbat, offline and upgradable added
- (ciddi89) euSec adapter added ([#73](https://github.com/ciddi89/ioBroker.device-watcher/issues/73))
### 2.2.2 (2022-12-29)

@@ -259,3 +350,3 @@

Copyright (c) 2022 Christian Behrends <mail@christian-behrends.de>
Copyright (c) 2023 Christian Behrends <mail@christian-behrends.de>

@@ -262,0 +353,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc