mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
Check if device has manufName. #1005
This commit is contained in:
parent
8a6582739f
commit
51c91e685e
@ -66,7 +66,7 @@ class PollLivoloSwitch {
|
|||||||
|
|
||||||
handleInterval() {
|
handleInterval() {
|
||||||
this.zigbee.getAllClients()
|
this.zigbee.getAllClients()
|
||||||
.filter((d) => d.manufName.startsWith('LIVOLO')) // LIVOLO
|
.filter((d) => d.manufName && d.manufName.startsWith('LIVOLO')) // LIVOLO
|
||||||
.filter((d) => d.type === 'EndDevice') // Filter end devices
|
.filter((d) => d.type === 'EndDevice') // Filter end devices
|
||||||
.filter((d) => d.powerSource && d.powerSource !== 'Battery') // Remove battery powered devices
|
.filter((d) => d.powerSource && d.powerSource !== 'Battery') // Remove battery powered devices
|
||||||
.forEach((d) => {
|
.forEach((d) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user