mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-18 22:05:25 +01: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];
|
var value = d[1];
|
||||||
if( value.match( /^set-/ ) )
|
if( value.match( /^set-/ ) )
|
||||||
continue;
|
continue;
|
||||||
|
if( value.match( /^set_/ ) )
|
||||||
|
continue;
|
||||||
|
|
||||||
var match = d[0].match(/([^-]*)-(.*)/);
|
var match = d[0].match(/([^-]*)-(.*)/);
|
||||||
var device = match[1];
|
var device = match[1];
|
||||||
@@ -678,6 +680,8 @@ FHEMAccessory.prototype = {
|
|||||||
} else if( reading == 'state' ) {
|
} else if( reading == 'state' ) {
|
||||||
if( value.match(/^set-/ ) )
|
if( value.match(/^set-/ ) )
|
||||||
return undefined;
|
return undefined;
|
||||||
|
if( value.match(/^set_/ ) )
|
||||||
|
return undefined;
|
||||||
|
|
||||||
if( this.event_map != undefined ) {
|
if( this.event_map != undefined ) {
|
||||||
var mapped = this.event_map[value];
|
var mapped = this.event_map[value];
|
||||||
|
|||||||
Reference in New Issue
Block a user