Traceback (most recent call last):


 "/home/rphlypo/miniconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/iohub/server.py", line 108, in handle

result = getattr(self, unicode(callable_name, 'utf-8'))
TypeError: decoding str is not supported

Traceback (most recent call last):


 "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step

result = coro.throw(exc)


 "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1026, in _event_to_service_call

yield from service_handler.func(service_call)


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/mqtt/__init__.py", line 411, in async_publish_service

msg_topic, payload, qos, retain)


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/mqtt/__init__.py", line 488, in async_publish

self._mqttc.publish, topic, payload, qos, retain)


 "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup

future.result()


 "/usr/lib/python3.5/asyncio/futures.py", line 274, in result

raise self._exception


 "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run

result = self.fn(*self.args, **self.kwargs)


 "/root/.homeassistant/deps/lib/python3.5/site-packages/paho/mqtt/client.py", line 1079, in publish

raise TypeError('payload must be a string, bytearray, int, float or None.')
TypeError: payload must be a string, bytearray, int, float or None.
