Since I find the Action history potentially useful for troubleshooting integrations, and because I understand it’s not feasible to have in the Bond app directly per the post below, I wonder if there is an opportunity to have a local network logger running for a Bond owner with just a couple tweaks to the current BPUP implementation?
When I started thinking this morning of a local network logger a Bond owner could run, based on BPUP, I realized that it’s a little difficult to tell at a glance what is truly “Bond app” initiated vs what is Google (and presumably Alexa etc) initiated vs what is Local API direct call initiated – at least from what I’m seeing.
The Local API initiated feels a little more easily spotted, but I think there’s room for a slight update to what goes in the “x” part (source transport) of the BPUP notification.
As in, if x = ‘http’ or ‘mqtt’, maybe it could specify which service was the source, if it came from a known “linked service” integration. If not from a linked service and not from the Bond app, then it is assumed to be the Local API directly called (and optionally could show from what IP address the API call was sent)?
Changes initiated in Bond App, an initial “x” of ‘bond’, followed immediately by an “x” of ‘bond’:
BPUP data payload received: (8/9/2023 8:57:01 AM)
{"B":"ZPxxxxxxx","d":0,"v":"v3.15.5-beta","t":"devices/aabbccdd/state","i":"05000033ae51c1e0","f":100,"s":200,"m":0,"x":"bond","b":{"power":1,"light":0,"flame":1,"_":"d44ea720","__":"d44ea720"}}
BPUP data payload received: (8/9/2023 8:57:01 AM)
{"B":"ZPxxxxxxx","d":0,"v":"v3.15.5-beta","t":"devices/00000000aabbccdd/actions/ToggleLight","i":"01000039826c505c","f":228,"s":200,"m":2,"x":"bond","b":{"argument":null,"no_tx":true,"_":"00000000","__":"00000000"}}
Changes initiated via local API from third party controller, an initial “x” of ‘bond’, followed immediately by an “x” of ‘http’:
BPUP data payload received: (8/9/2023 8:57:32 AM)
{"B":"ZPxxxxxxx","d":0,"v":"v3.15.5-beta","t":"devices/aabbccdd/state","i":"0500009081f4656b","f":100,"s":200,"m":0,"x":"bond","b":{"power":1,"light":0,"flame":1,"_":"d44ea720","__":"d44ea720"}}
BPUP data payload received: (8/9/2023 8:57:32 AM)
{"B":"ZPxxxxxxx","d":0,"v":"v3.15.5-beta","t":"devices/aabbccdd/actions/TurnLightOff","i":"06000067d5b5d2f0","f":132,"s":200,"m":2,"x":"http","b":{"_":"00000000","__":"00000000"}}
Changes initiated via Google Home app, an initial “x” of ‘bond’, followed immediately by an “x” of ‘mqtt’ (not sure if this would vary based on if a user has a Thread / Matter / Google Home Hub, as I do, vs someone that only uses Google Assistant on a phone):
BPUP data payload received: (8/9/2023 8:57:51 AM)
{"B":"ZPxxxxxxx","d":0,"v":"v3.15.5-beta","t":"devices/aabbccdd/state","i":"05000099f2322a63","f":100,"s":200,"m":0,"x":"bond","b":{"power":1,"light":1,"flame":1,"_":"7a2636b1","__":"7a2636b1"}}
BPUP data payload received: (8/9/2023 8:57:51 AM)
{"B":"ZPxxxxxxx","d":0,"v":"v3.15.5-beta","t":"devices/aabbccdd/actions/SetFlame","i":"0cbbf54ff3110053","f":132,"s":200,"m":2,"x":"mqtt","b":{"argument":100,"_":"00000000","__":"00000000"}}