I am currently in the process of migrating my HA config from a vm to an old laptop with ubuntu on it. Most of the stuff works except my Broadlink rm mini 3. It produces the following error and I have very little experience with python.
2017-12-23 18:53:03 ERROR (MainThread) [homeassistant.components.switch]
Error while setting up platform broadlink
Traceback (most recent call last):
File "/home/ha/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/
entity_component.py", line 171, in _async_setup_platform SLOW_SETUP_MAX_WAIT,
loop=self.hass.loop) File "/usr/lib/python3.5/asyncio/tasks.py", line 392,
in wait_for return fut.result() File "/usr/lib/python3.5/asyncio/futures.py",
line 274, in result raise self._exception File "/usr/lib/python3.5/concurrent/
futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs)
File "/home/ha/homeassistant/lib/python3.5/site-packages/homeassistant/components/
switch/broadlink.py", line 174, in setup_platform broadlink_device.auth()
File "/home/ha/homeassistant/lib/python3.5/site-packages/broadlink/__init__.py",
line 203, in auth response = self.send_packet(0x65, payload) File
"/home/ha/homeassistant/lib/python3.5/site-packages/broadlink/__init__.py",
line 258, in send_packet payload = self.encrypt(payload) File
"/home/ha/homeassistant/lib/python3.5/site-packages/broadlink/__init__.py",
line 162, in encrypt_pyaes return "".join([aes.encrypt(bytes(payload[i:i+16]))
for i in range(0, len(payload), 16)])
TypeError: sequence item 0: expected str instance, bytes found
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 41.1601
longitude: -81.1675
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/New_York
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Weather prediction
sensor:
- platform: yr
# Text to speech
tts:
# Cloud
cloud:
###################################
# includes #
###################################
switch: !include switches.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
device_tracker: !include device_trackers.yaml
media_player: !include media_players.yaml