HassOS and Mochad or HeyU

Has anyone had success installing HeyU or Mochad or something that controls X10 in HassOS in a Windows VirtualBox?

When I run Mochad, I get this error

 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 197, in _async_setup_platform
    await asyncio.shield(task)
  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 39, in setup_platform
    add_entities([MochadLight(hass, mochad_controller.ctrl, dev) for dev in devs])
  File "/usr/src/homeassistant/homeassistant/components/mochad/light.py", line 39, in <listcomp>
    add_entities([MochadLight(hass, mochad_controller.ctrl, dev) for dev in devs])
  File "/usr/src/homeassistant/homeassistant/components/mochad/light.py", line 55, in __init__
    self._state = self._get_device_status()
  File "/usr/src/homeassistant/homeassistant/components/mochad/light.py", line 66, in _get_device_status
    status = self.light.get_status().rstrip()
  File "/usr/local/lib/python3.8/site-packages/pymochad/device.py", line 55, in get_status
    return self.controller.read_data().lower()
  File "/usr/local/lib/python3.8/site-packages/pymochad/controller.py", line 83, in read_data
    data = self.socket.recv(4096)
ConnectionRefusedError: [Errno 111] Connection refused

I have the port set at 1099. Is it possible I have the wrong port? How could I tell from terminal if I have the right port?

When I try to run HeyU I get
curl: (6) Could not resolve host: POST error.

From what I can tell, these errors have to do with port forwarding, but I’m operating on a bridged adapter. I’m not sure how to clear it so it goes through. My Z stick works, as does everything else of mine. I would just like to see if I can get X10 to work. Thanks.

try

telnet xxx.xxx.xxx.xxx 1099

image

@vicom So telnet doesn’t work for me in terminal. Is there another command I should be using?

install telnet on your Windows VM. Under “Programs and features” select “Turn Windows features on or off”
image

and select “Telnet Client”
image

@vicom Ok I got it to work. Local IP was incorrect so now it appears to load but I get

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:228
Integration: Switch (documentation, issues)
First occurred: 8:54:05 PM (1 occurrences)
Last logged: 8:54:05 PM

Setup of platform mochad is taking longer than 60 seconds. Startup will proceed without waiting any longer.

Config.yaml shows this

light:
  - platform: mochad
    devices:
      - address: O4
        name: Living Room Lamp
      - address: O5
        name: Christmas Tree
      - address: O6
        name: Christmas MSC1
      - address: O15
        name: Garage Lights    

I’m assuming since this is an X10 platform and my experience with HeyU is that these entities would just populate in Hass since its one way. Except, they don’t.