indigodomo / HomeKit-Bridge

Enabled HomeKit integration via Homebridge for Indigo Home Automation
The Unlicense
46 stars 13 forks source link

Error when not only having ascii in names of objects #140

Open patrikhson opened 3 years ago

patrikhson commented 3 years ago

When excluding items, the list of excluded items do not get populated. An exception is thrown.

Expected Behavior

The list of excluded items should include the excluded items.

Look out for correct cast of variables in python so non-ascii text strings are accepted (where they might show up).

Current Behavior

HomeKit Bridge Error Exception in plugin.hiddenObjectItemsList line 2258: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128) CODE: name = "{0}: {1}".format(object, name)

Steps to Reproduce (for bugs)

Versions


### Homebridge Log / Command Output
<!-- Paste relevant output between the two ``` lines below
  - Retrieve the log for your server:
    - Open the Indigo Plugins menu
    - Select HomeKit Bridge
    - Select Advanced Plugin Actions
    - Select the server having issues in the first Device field
    - Select `Show Homebridge Log` from Device Actions
    - Click the `Execute Action` button
    - Copy contents of the log from your Indigo Event Log window
  - Remove any sensitive information, passwords, etc.
  - If output is long please extract only the relevant portions if possible
  - However, please include the beginning of the log where the homebridge initialization happens if possible
-->

### Device Simulation Report
<!-- Paste relevant output between the two ``` lines below
  - Retrieve the simulation data for your server:
    - Open the Indigo Plugins menu
    - Select HomeKit Bridge
    - Select Advanced Plugin Actions
    - Select the server having issues in the first Device field
    - Select `Simulate HomeKit For Server Item` from Device Actions
    - Select the device you are having problems with from the Server Device field
    - Click the `Execute Action` button
    - Copy contents of the log from your Indigo Event Log window
  - Remove any sensitive information, passwords, etc.
  - If output is long please extract only the relevant portions if possible
-->