mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-24 06:42:26 +00:00
Fix endpoint match (#10898)
https://github.com/Koenkk/zigbee2mqtt/discussions/9504 For this case topic is 'state_top_left', 'state_bottom_left' and etc.., Old pattern it is match as: [state_top_left, state_top, left] New pattern it is match as: [state_top_left, state, top_left]
This commit is contained in:
1 parent
a867b719dc
commit
d87347923b
1 file changed
+1
-1
@@ -10,7 +10,7 @@ import Device from '../model/device';
|
||||
import bind from 'bind-decorator';
|
||||
|
||||
const topicRegex = new RegExp(`^(.+?)(?:/(${utils.endpointNames.join('|')}|\\d+))?/(get|set)(?:/(.+))?`);
|
||||
const propertyEndpointRegex = new RegExp(`^(.*)_(${utils.endpointNames.join('|')})$`);
|
||||
const propertyEndpointRegex = new RegExp(`^([^_]*)_(${utils.endpointNames.join('|')})$`);
|
||||
const stateValues = ['on', 'off', 'toggle', 'open', 'close', 'stop', 'lock', 'unlock'];
|
||||
const sceneConverterKeys = ['scene_store', 'scene_add', 'scene_remove', 'scene_remove_all'];
|
||||
|
||||
|
||||
Reference in new issue
Block a user