Bond Plugin - Firmware V3

Posted on
Sun Jul 10, 2022 5:00 pm
Korey offline
User avatar
Posts: 813
Joined: Jun 04, 2008
Location: Henderson, NV

Bond Plugin - Firmware V3

Seems that V3 bond firmware breaks the plugin as it is now serving up http://xxx.xxx.xxx.xxx/v3/devices/ instead of http://xxx.xxx.xxx.xxx/v2/devices/


tried a quick fix to change v2 to v3 in bondhome.py with no luck and plenty of errors!

plugin v2022.0.0

:(

--
Korey

Posted on
Sun Jul 10, 2022 5:59 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

Yikes. OK, I'll take a look.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 10, 2022 6:05 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

Does the initial query to the Bridge work? Do the states get populated? Please turn on debug logging and restart the plugin, then post.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 10, 2022 6:17 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

And what firmware version does the mobile app show for your bridge? Is this a new device? What model?

I'm not seeing anything in the Bond forums or technical docs about v3 firmware. Mine is v2.28.0 with no updates available.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 10, 2022 6:28 pm
Korey offline
User avatar
Posts: 813
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Bond Plugin - Firmware V3

Code: Select all
Debugging plugin "Bond Home 2022.0.0" (pid 93768)
   Started plugin "Bond Home 2022.0.0"
   Bond Home                       Starting BondHome
   Bond Home                       Bond Bridge: Starting bondBridge Device 1731641810
   Bond Home Error                 exception in device_start_comm(Bond Bridge): 404 Client Error: Not Found for url: http://192.168.0.32/v2/devices/__
   Bond Home                       Family Room - Celing Fan: Starting bondDevice Device 656058716
   Bond Home                       Family Room - Fan: Starting smartBond Device 806306447
   Bond Home Error                 exception in device_start_comm(Family Room - Fan): 404 Client Error: Not Found for url: http://192.168.0.31/v2/devices/__
   Bond Home Error                 Error in plugin execution _postStartup:

  File "plugin.py", line 210, in _postStartup
  File "plugin.py", line 162, in doDeviceStartup
type: 'NoneType' object has no attribute 'get'


modifying the device gets :

Code: Select all
   Bond Home                       Bond Bridge: Stopping bondBridge Device 1731641810
   Bond Home Error                 Error in plugin execution ServerReplacedElem:

  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1376, in device_updated
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1326, in _dispatch_device_stop_comm
  File "plugin.py", line 195, in deviceStopComm
type: ('ZZDE62994',


it seems to get the current firmware version into the bond device:
Attachments
Screen Shot 2022-07-10 at 5.25.27 PM.png
Screen Shot 2022-07-10 at 5.25.27 PM.png (37.9 KiB) Viewed 2372 times

--
Korey

Posted on
Sun Jul 10, 2022 6:29 pm
Korey offline
User avatar
Posts: 813
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Bond Plugin - Firmware V3

Device info from the App:
Attachments
IMG_C40D928FAA41-1.jpeg
IMG_C40D928FAA41-1.jpeg (332.73 KiB) Viewed 2366 times

--
Korey

Posted on
Sun Jul 10, 2022 6:29 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

Why are you running beta firmware?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 10, 2022 6:35 pm
Korey offline
User avatar
Posts: 813
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Bond Plugin - Firmware V3

Because I'm a Putz!

ill revert to V2.

--
Korey

Posted on
Sun Jul 10, 2022 6:37 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

I'll start chasing down what the changes will be, but I'm not committing to supporting it while it's still beta.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jul 11, 2022 8:18 am
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

If you want to try the beta again, please test https://github.com/FlyingDiver/Indigo-B ... g/2022.0.1

This addresses the API change that broke the current release. It does not implement the new V3 features.

This version also allows device discovery via mDNS/Bonjour. You still need the token from the mobile app.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 04, 2022 12:41 am
ppespepe offline
Posts: 49
Joined: May 27, 2020

Re: Bond Plugin - Firmware V3

Hello Joe,

First and foremost, thanks for creating and sharing this plugin!!!!

One quick question if I may: Is It at all possible to add status information to the plugin? I know a fan won't give any but at least the status the bridge reports?

KR

PP

Posted on
Thu Aug 04, 2022 8:00 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

ppespepe wrote:
One quick question if I may: Is It at all possible to add status information to the plugin? I know a fan won't give any but at least the status the bridge reports?


What status information do you think the hub has that's not being reported? For what kind of device?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 11, 2022 10:15 am
ppespepe offline
Posts: 49
Joined: May 27, 2020

Re: Bond Plugin - Firmware V3

Hi Joel,

By status, I mean turned ON, OFF, Speed, and by device, it is a three-speed fan with a single lamp.

For instance: I've just turned on my fan by clicking the ON button, it started in speed 1, and the light is ON:

Bond iPhone App:
Screenshot 2022-08-11 at 11.12.31 AM.jpeg
Screenshot 2022-08-11 at 11.12.31 AM.jpeg (172.15 KiB) Viewed 2126 times


And the status on Indigo:
2022-08-11_11-07-54.png
2022-08-11_11-07-54.png (252.93 KiB) Viewed 2126 times


Thanks in advance for your kind attention!

PP

Posted on
Fri Aug 12, 2022 10:23 am
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Bond Plugin - Firmware V3

Turn detailed debugging on, then restart the plugin. Use the original remote for the fan and see if the Bond app reflects the changes properly, Also Indigo. Then post the log.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 12, 2022 11:15 am
ppespepe offline
Posts: 49
Joined: May 27, 2020

Re: Bond Plugin - Firmware V3

If I use the original remote, it won't update the Bond app. I wasn't expecting that to work.

My question is more: When I use Indigo to control the fan, it sends the command successfully, but it always shows as off in Indigo. In the images I shared before, I used Indigo to turn ON the fan and the lamp, the Bond app shows the FAN is on @ 1st speed and the light is ON but on the Indigo side, everything is off.

I hope this makes sense.

KR

PP


Code: Select all
Aug 12, 2022 at 12:10:19 PM
   Reloading plugin "Bond Home 2022.0.3" using API v3.0
   Stopping plugin "Bond Home 2022.0.3" (pid 6778)
   Bond Home                       Bond Bridge: Stopping bondBridge Device 52949385
   Bond Home                       Ceiling FAN : Stopping bondDevice Device 1572356534
   Bond Home                       Ceiling fan light(194180a7): Stopping bondDevice Device 1919109411
   Bond Home Error                 exception in device_stop_comm(Ceiling fan light(194180a7)): '194180a7'
   Bond Home                       Stopping BondHome
   Stopped plugin "Bond Home 2022.0.3"
   Starting plugin "Bond Home 2022.0.3" (pid 53264)
   Bond Home Debug                 logLevel = 5
   Started plugin "Bond Home 2022.0.3"
   Bond Home                       Starting BondHome
   Bond Home                       Bond Bridge: Starting bondBridge Device 52949385
   Bond Home Debug                 BondHome __init__ address = 192.168.1.196, token = 2e77121c439974f4
   Bond Home Debug                 Bond Bridge: Bond version: {'target': 'zermatt', 'fw_ver': 'v3.3.13', 'fw_date': 'Thu Jul 21 21:09:48 UTC 2022', 'uptime_s': 1515744, 'boot_patch': 'not first boot', 'make': 'Olibra', 'model': 'BD-1000', 'branding_profile': 'OLIBRA_BD1000', 'bondid': 'ZZEJ49605', 'upgrade_http': True, 'api': 2, '_': '8fac5aba', '__': '8fac5aba'}
   Bond Home Debug                 Bond Bridge: Bond info: {'name': 'My Bridge', 'location': 'Living Room', 'bluelight': 255, 'frequencies': [[38, 38], [300000, 321500], [336000, 399500], [410500, 450000]], '_': 'c7ec2425', '__': 'c7ec2425'}
   Bond Home Debug                 get_device_list: {'_': '33965e4b', '__': '00000000', '194180a7': {'_': '2043025b'}}
   Bond Home Debug                 Service ZZEJ49605._bond._tcp.local. of type _bond._tcp.local. state changed: ServiceStateChange.Added
   Bond Home Debug                 Found BondBridges: {'ZZEJ49605._bond._tcp.local.': 'ZZEJ49605.local.'}
   Bond Home Debug                 Bond Bridge: known_devices:
{'ZZEJ49605': {'194180a7': {'name': 'Ceiling fan', 'type': 'CF', 'location': 'Living Room', 'template': 'D1x', 'actions': ['DecreaseSpeed', 'IncreaseSpeed', 'SetDirection', 'SetSpeed', 'StartDownLightDimmer', 'StartUpLightDimmer', 'Stop', 'ToggleDirection', 'ToggleDownLight', 'ToggleLight', 'TogglePower', 'ToggleUpLight', 'TurnDownLightOff', 'TurnDownLightOn', 'TurnLightOff', 'TurnLightOn', 'TurnOff', 'TurnOn', 'TurnUpLightOff', 'TurnUpLightOn'], '_': '2043025b', '__': '6d9eefb7', 'commands': {'_': 'dfb96a85'}, 'state': {'_': '8944e936'}, 'properties': {'_': 'af9be65b'}, 'skeds': {'_': '00000000'}}}}
   Bond Home Debug                 udp_start() socket listener started
   Bond Home                       Ceiling FAN : Starting bondDevice Device 1572356534
   Bond Home                       Ceiling fan light(194180a7): Starting bondDevice Device 1919109411
   Bond Home Debug                 Ceiling fan light(194180a7): doDeviceStartup: bondDevice (194180a7)
   Bond Home Debug                 Ceiling fan light(194180a7): doDeviceStartup: using bond_id = ZZEJ49605
   Bond Home Debug                 Ceiling fan light(194180a7): Device states: {'power': 0, 'speed': 2, 'direction': -1, 'light': 1, 'up_light': 0, 'down_light': 1, '_': '8944e936', '__': '8944e936'}

Who is online

Users browsing this forum: No registered users and 3 guests