mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-27 05:13:10 +00:00
ignore state set_ in addition to set-
This commit is contained in:
@@ -108,6 +108,8 @@ function FHEM_startLongpoll(connection) {
|
||||
var value = d[1];
|
||||
if( value.match( /^set-/ ) )
|
||||
continue;
|
||||
if( value.match( /^set_/ ) )
|
||||
continue;
|
||||
|
||||
var match = d[0].match(/([^-]*)-(.*)/);
|
||||
var device = match[1];
|
||||
@@ -678,6 +680,8 @@ FHEMAccessory.prototype = {
|
||||
} else if( reading == 'state' ) {
|
||||
if( value.match(/^set-/ ) )
|
||||
return undefined;
|
||||
if( value.match(/^set_/ ) )
|
||||
return undefined;
|
||||
|
||||
if( this.event_map != undefined ) {
|
||||
var mapped = this.event_map[value];
|
||||
|
||||
Reference in New Issue
Block a user