Hi all,
I do not know if this is a corner case of what, but I would like to make a match like this, and then insert the payload into a variable.
But I feel that the "column" in the last match is causing the problem, could it be the reason?
Thanks
Marco
Trigger - Match String containing "column"
Trigger - Match String containing "column"
- Attachments
-
- Screenshot 2022-12-15 alle 20.59.18.png (125.81 KiB) Viewed 1447 times
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Trigger - Match String containing "column"
I need to see the actual topic string, from Explorer or (better) MQTT Connector debug.
And I assume you meant "colon", not "column".
And I assume you meant "colon", not "column".
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Trigger - Match String containing "column"
Yes, of course, but Safari decided to correct it
Here MQTT Explorer
and here the MQTT Connector Debug
Here MQTT Explorer
and here the MQTT Connector Debug
Code: Select all
esense Topic Received - AmazFit Giorgia: Match OK: 'devices' == 'devices'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: match.split = 'Match' 'mifit:fefc0f0f32d2'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: topic_part 2 = 'known:fefc0f0f32d2'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: Match Failed: 'mifit:fefc0f0f32d2' != 'known:fefc0f0f32d2'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: Matching complete, is_match = False
MQTT Connector Debug Local MQTT: Message topic: espresense/devices/known:fefc0f0f32d2/bagno_og, payload = {"id":"known:fefc0f0f32d2","idType":210,"rssi@1m":-71,"rssi":-58,"raw":0.43,"distance":0.44,"speed":-0.00,"mac":"fefc0f0f32d2","interval":2302}
MQTT Connector Debug Local MQTT: processReceivedMessage: espresense/devices/known:fefc0f0f32d2/bagno_og, payload: {"id":"known:fefc0f0f32d2","idType":210,"rssi@1m":-71,"rssi":-58,"raw":0.43,"distance":0.44,"speed":-0.00,"mac":"fefc0f0f32d2","interval":2302}
MQTT Connector Debug Local MQTT: Saved states, topic: espresense/devices/known:fefc0f0f32d2/bagno_og, payload: {"id":"known:fefc0f0f32d2","idType":210,"rssi@1m":-71,"rssi":-58,"raw":0.43,"distance":0.44,"speed":-0.00,"mac":"fefc0f0f32d2","interval":2302}
MQTT Connector Debug ESPresense Topic Received - Bagno OG: type = topicMatch, broker = 1038765987
MQTT Connector Debug ESPresense Topic Received - Bagno OG: topic_parts = ['espresense', 'devices', 'known:fefc0f0f32d2', 'bagno_og']
MQTT Connector Debug ESPresense Topic Received - Bagno OG: match_list = match_list : (list)
Item : Match: espresense (string)
Item : Match: rooms (string)
Item : Match: bagno_og (string)
Item : Any: (string)
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: match_list = match_list : (list)
Item : Match: espresense (string)
Item : Match: devices (string)
Item : Match: mifit:fefc0f0f32d2 (string)
Item : Any: (string)
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: match.split = 'Match' 'espresense'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: topic_part 0 = 'espresense'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: Match OK: 'espresense' == 'espresense'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: match.split = 'Match' 'devices'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: topic_part 1 = 'devices'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: Match OK: 'devices' == 'devices'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: match.split = 'Match' 'mifit:fefc0f0f32d2'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: topic_part 2 = 'known:fefc0f0f32d2'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: Match Failed: 'mifit:fefc0f0f32d2' != 'known:fefc0f0f32d2'
MQTT Connector Debug ESPresense Topic Received - AmazFit Giorgia: Matching complete, is_match = False
MQTT Connector Debug Tapparella Lisa 1: deviceUpdated: doExcludes = False, listedDevice = False
MQTT Connector Debug Tapparella Lisa 1: deviceUpdated: id = 773580404, devList = published_devices : (list)
MQTT Connector Debug Local MQTT: Message topic: shellies/shellyplug-s-B4B29E/relay/0/power, payload = 0.00
MQTT Connector Debug Local MQTT: processReceivedMessage: shellies/shellyplug-s-B4B29E/relay/0/power, payload: 0.00
- Attachments
-
- Screenshot 2022-12-15 alle 21.04.40.png (185.11 KiB) Viewed 1444 times
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Trigger - Match String containing "column"
That looks like it should be working. Do you have (or can get) a log segment where that topic is actually received. It's not in the log segment you posted.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177