Git Product home page Git Product logo

indigo-bondhome's People

Contributors

flyingdiver avatar

Watchers

 avatar  avatar  avatar

indigo-bondhome's Issues

Add action to set repeat count for bond device

Am I correct in thinking that even using the Bond Home app you have the same issue? That turning the device on or off in the app only does a limited amount of movement. In that case, it might be better to reprogram the Bond to send multiple repetitions of the signal to better simulate holding the button down.

See this Bond forum thread: https://forum.bondhome.io/t/need-to-hold-repeat-rf-signal-for-a-few-seconds/1059

And this video: https://www.youtube.com/watch?v=RWOH2WqzNOU&feature=emb_logo

If you don't feel comfortable doing that yourself, I can probably add an action to the plugin to set the repeat value.

Startup errors

Errors in log when client devices started before bridge device:

   Bond Home                       Starting BondHome
   Bond Home                       All Shutters (73e68b9d): Starting bondDevice Device 1183074075
   Bond Home Error                 exception in deviceStartComm(All Shutters (73e68b9d)): u'ZZBL41370'
   Bond Home                       Fireplace (6296bd73): Starting bondDevice Device 468285124
   Bond Home Error                 exception in deviceStartComm(Fireplace (6296bd73)): u'ZZBL41370'
   Bond Home                       Great Room Bond: Starting bondBridge Device 596787479

Unicode Errors

I have 2 devices that use commas and 2 rooms that have commas. They were throwing errors in v 0.2.0. When I removed the commas, the errors went away:

_```
Aug 20, 2021 at 1:54:34 PM
Reloading plugin "Bond Home 0.2.0"
Stopping plugin "Bond Home 0.2.0" (pid 9980)
Stopped plugin "Bond Home 0.2.0"
Starting plugin "Bond Home 0.2.0" (pid 11558)
Started plugin "Bond Home 0.2.0"
Bond Home Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 244, in runConcurrentThread
File "plugin.py", line 199, in doDeviceStartup
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 5: ordinal not in range(128)

Bond Home Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Bond Home Error Error in plugin execution runConcurrentThread:

Send continuous signal

Is there a way I can send a continuous signal via the Bond Bridge for a preset period, so as the blind closes or opens smoothly?

"Smart by Bond" devices don't work with new plugin version

"FYI, the latest plugin update broke my device and bridge. I tried opening and saving the bridge and device and when that didn't work I tried creating as new but nothing worked. I believe it may not have my device as an option (I have one of those fans with the integrated "smart by bond" bridge). I reverted to the previous plugin and everything works now, but I wanted to let you know."

issue adding fireplace remote

I get errors in creating a fireplace remote.
see attached file for copies of the logs. I didn't restart the plugin till after it was added. if that is a problem let me know.
I did reload after and it is at the end of the file.
two files (same data) for your convenience in the zip. an rtf one (Mac) and a word file.
bond fireplace remote.zip

IncreaseSpeed action failing

When issuing IncreaseSpeed action, without a parameter the action results in Bad Request

   Bond Home Debug                 device_action, url = http://192.168.100.194/v2/devices/5c0x47x83xa69x58/actions/DecreaseSpeed, payload = {}
   Bond Home Debug                 device_action, resp = <Response [200]>
   Bond Home Debug                 device_action, url = http://192.168.100.194/v2/devices/5c0x47x83xa69x58/actions/IncreaseSpeed, payload = {}
   Bond Home Error                 Error in plugin execution ExecuteAction:

  File "plugin.py", line 379, in actionControlDevice
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/BondHome.indigoPlugin/Contents/Server Plugin/bondhome.py", line 84, in device_action
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/models.py", line 960, in raise_for_status
type: 400 Client Error: Bad Request for url: http://192.168.100.194/v2/devices/5c0x47x83xa69x58/actions/IncreaseSpeed

The same action with a parameter works

   Bond Home Debug                 device_action, url = http://192.168.1.94/v2/devices/5c04f76833a69d58/actions/IncreaseSpeed, payload = {'argument': 1}
   Bond Home Debug                 device_action, resp = <Response [200]>
   Bond Home Debug                 device_action, url = http://192.168.1.94/v2/devices/5c04f76833a69d58/actions/TurnOff, payload = {}
   Bond Home Debug                 device_action, resp = <Response [200]>
   Bond Home Debug                 device_action, url = http://192.168.1.94/v2/devices/5c04f76833a69d58/actions/IncreaseSpeed, payload = {'argument': 3}
   Bond Home Debug                 device_action, resp = <Response [200]>
   Bond Home Debug                 device_action, url = http://192.168.1.94/v2/devices/5c04f76833a69d58/actions/TurnOff, payload = {}
   Bond Home Debug                 device_action, resp = <Response [200]>

It looks like the v3 API docs show the speed actions including a parameter.

Actions

SetSpeed(speed): Set speed and turn on. If speed>max_speed, max_speed is assumed. If the fan is off, implicitly turn on the power. Setting speed to zero or a negative value is ignored.

IncreaseSpeed(speeds): Increase speed of fan by specified number of speeds. If the fan is off, implicitly turn on the power.

DecreaseSpeed(speeds): Decrease fan speed by specified number of speeds. If attempting to decrease fan speed below 1, the fan will remain at speed 1. That is, power will not be implicitly turned off. If the power is already off, DecreaseSpeed is ignored.

2022.0.1 Info

upon startup:

` Debugging plugin "Bond Home 2022.0.1" (pid 68190)
Bond Home Error Error in plugin execution InitializeMain:

File "plugin.py", line 10, in
type: No module named 'zeroconf'

Stopping plugin "Bond Home 2022.0.1" (pid 68190)
Stopped plugin "Bond Home 2022.0.1"
`

Communication issues?

Hi,

Love all your plugins - this one too - but performance has degraded lately with following response to request to configure:-

Error (client) timeout waiting for plugin response from com.flyingdiver.indigoplugin.bondhome for request UiGetValues1
Error (client) timeout waiting for plugin response from com.flyingdiver.indigoplugin.bondhome for request CallPluginFunc
Error (client) runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

Any thoughts? I'm not sure it's the plugins fault. V2022.0.4 (and V2022.0.3 also). Latest Indigo release.

Controlling a fan with a Bond Home Bridge throws an error

I have two Bond devices in my home:

  • A Bond Bridge (hockey puck)
  • A Minka-Aire Molino fan with Bond support built in.

The first device is added and works fine.

The second device is added; however, when I go to control it, an error occurs.

Here are the detailed logs from the plug-in:

   Bond Home                       Starting BondHome
   Bond Home                       Bond Bridge: Starting bondBridge Device 1778323653
   Bond Home Debug                 BondHome __init__ address = ZZEI43594.local., token = 6568b6011361850a
   Bond Home Debug                 get_bridge_version
   Bond Home Debug                 Service ZZEI43594._bond._tcp.local. of type _bond._tcp.local. state changed: ServiceStateChange.Added
   Bond Home Debug                 Found BondBridges: {'ZZEI43594._bond._tcp.local.': 'ZZEI43594.local.'}
   Bond Home Debug                 Service KIMJAFB17184._bond._tcp.local. of type _bond._tcp.local. state changed: ServiceStateChange.Added
   Bond Home Debug                 Found BondBridges: {'ZZEI43594._bond._tcp.local.': 'ZZEI43594.local.', 'KIMJAFB17184._bond._tcp.local.': 'KIMJAFB17184.local.'}
   Bond Home Debug                 Bond Bridge: Bond version: {'target': 'zermatt', 'fw_ver': 'v3.13.6', 'fw_date': 'Thu May  4 19:09:08 UTC 2023', 'uptime_s': 686169, 'make': 'Olibra', 'model': 'BD-1000', 'branding_profile': 'OLIBRA_BD1000', 'bondid': 'ZZEI43594', 'upgrade_http': True, 'api': 2, '_': '50ab13b0', '__': '50ab13b0'}
   Bond Home Debug                 get_bridge_info
   Bond Home Debug                 Bond Bridge: Bond info: {'name': 'CdB', 'location': 'Attic', 'bluelight': 255, 'frequencies': [[38, 38], [300000, 321500], [336000, 399500], [410500, 450000]], 'bgrx_mode': 0, '_': '8c146be7', '__': '8c146be7'}
   Bond Home Debug                 get_device_list
   Bond Home Debug                 get_device_list: {'_': 'fc14df72', '__': '00000000', '7a6ccb8035bbfbe8': {'_': '08854aa2'}, 'f9e7e6f53d6042fe': {'_': '08662de1'}, '8db6a8a77871253e': {'_': '2db7b356'}}
   Bond Home Debug                 get_device: 7a6ccb8035bbfbe8
   Bond Home Debug                 get_device: f9e7e6f53d6042fe
   Bond Home Debug                 get_device: 8db6a8a77871253e
   Bond Home Debug                 Bond Bridge: known_devices:
{'ZZEI43594': {'7a6ccb8035bbfbe8': {'name': 'Shades', 'type': 'MS', 'location': 'Dining Room', 'template': 'RMS25', 'actions': ['Aux', 'Close', 'CloseNext', 'Hold', 'Open', 'OpenNext', 'Pair', 'Stop', 'ToggleOpen', 'Unpair'], '_': '08854aa2', '__': '0a008122', 'commands': {'_': 'd09ae53b'}, 'state': {'_': 'fc9a5b5d'}, 'properties': {'_': '56c06f29'}, 'skeds': {'_': '00000000'}}, 'f9e7e6f53d6042fe': {'name': 'Master bedroom fan', 'type': 'CF', 'location': 'Master Bedroom', 'actions': ['DecreaseSpeed', 'IncreaseSpeed', 'SetSpeed', 'Stop', 'ToggleLight', 'TogglePower', 'TurnLightOff', 'TurnLightOn', 'TurnOff', 'TurnOn'], '_': '08662de1', '__': '84e27afb', 'commands': {'_': 'df88fe9d'}, 'state': {'_': '6210bd0d'}, 'properties': {'_': '9be84ea4'}, 'skeds': {'_': '00000000'}}, '8db6a8a77871253e': {'name': 'Patio fan', 'type': 'CF', 'location': 'Patio', 'template': 'A3a', 'actions': ['DecreaseSpeed', 'IncreaseSpeed', 'SetDirection', 'SetSpeed', 'StartDimmer', 'Stop', 'ToggleDirection', 'ToggleLight', 'TogglePower', 'TurnLightOff', 'TurnLightOn', 'TurnOff', 'TurnOn'], '_': '2db7b356', '__': '464a3d13', 'commands': {'_': '21a83e07'}, 'state': {'_': 'fd4d61a1'}, 'properties': {'_': 'a3e49d3c'}, 'skeds': {'_': '00000000'}}}}
   Bond Home Debug                 udp_start() socket listener started
   Bond Home                       Bond Molino: Starting bondBridge Device 34335022
   Bond Home Debug                 BondHome __init__ address = KIMJAFB17184.local., token = 53b15c466000bbd54
   Bond Home Debug                 get_bridge_version
   Bond Home Debug                 Bond Molino: Bond version: {'target': 'breck-intuition-f', 'fw_ver': 'v3.5', 'fw_date': 'Wed Oct 19 21:43:47 UTC 2022', 'uptime_s': 719255, 'make': 'Minka Aire', 'model': 'F742L', 'branding_profile': 'MINKA_F742L', 'bondid': 'KIMJAFB17184', 'upgrade_http': True, 'api': 2, '_': 'b627f526', '__': 'b627f526'}
   Bond Home Debug                 get_bridge_info
   Bond Home Debug                 Bond Molino: Error in get_bridge_info()
   Bond Home Error                 Error in plugin execution ExecuteAction:

  File "plugin.py", line 377, in actionControlDevice
type: ('KIMJAFB17184',)

   Bond Home Error                 Error in plugin execution ExecuteAction:

  File "plugin.py", line 386, in actionControlDevice
type: ('KIMJAFB17184',)

   Bond Home Debug                 getActionConfigUiValues, typeId = doDeviceAction, devId = 0, actionProps = UiValuesDict : (dict)
     argument : 1 (string)
     bridge : ZZEI43594 (string)
     command : SetSpeed (string)
     device : 8db6a8a77871253e (string)
   Bond Home Debug                 getActionConfigUiValues, bond_bridges = {'ZZEI43594': <bondhome.BondHome object at 0x10f5eed40>}
   Bond Home Debug                 menuChanged: typeId = doDeviceAction, devId = 0, valuesDict = UiValuesDict : (dict)
     argument : 1 (string)
     argumentNote1 :  (string)
     argumentNote2 :  (string)
     bridge : KIMJAFB17184 (string)
     command : SetSpeed (string)
     device : 8db6a8a77871253e (string)
   Bond Home Error                 Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 338, in get_device_list
type: ('KIMJAFB17184',)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.