hi guys
I’m running 2PIs setup as well one with fresh new install of HA, the other with dietpi + mochad running on it.
right after install , no issues.
only config mochad:
host: IP
port: 1099
and some lights
Some ‘days?’ later, clicking on a light switch in HA, gets me a
service error “light/turn_off”. [Errno 32] Broken pipe
while echo “pl c13 off” | nc IP 1099 from the HA console works
Logger: homeassistant.components.websocket_api.http.connection
Source: components/mochad/light.py:126
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:40:45 (10 occurrences)
Last logged: 19:59:38
[2897073392] [Errno 32] Broken pipe
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1451, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1486, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 499, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 536, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 699, in async_turn_off
await self.hass.async_add_executor_job(ft.partial(self.turn_off, **kwargs))
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/mochad/light.py", line 126, in turn_off
self.light.send_cmd("off")
File "/usr/local/lib/python3.8/site-packages/pymochad/device.py", line 45, in send_cmd
self.controller.send_cmd(cmd_str + '\n')
File "/usr/local/lib/python3.8/site-packages/pymochad/controller.py", line 71, in send_cmd
self.socket.sendall(six.binary_type(cmd.encode('utf8')))
BrokenPipeError: [Errno 32] Broken pipe
any ideas?
sometimes kicking out something (don’t remember what) or reboot, makes it work again…