Hi, I’m trying to setup mochad in Home assistant to control some lights and switches. I´m using a dockerized version. I’ve manage to kind of make it working but I get this message from the log:
“Setup of platform mochad is taking longer than 60 seconds. Startup will proceed without waiting any longer”
In my experience, the entities star to appear after 2 - 3 hours and then I can control the lights and switches but it´s not ideal to wait that long for them to work.
here my config file:
mochad:
host: localhost
port: 1099
We are not running docker and Mochad is still always the last thing to load giving the Setup of platform mochad is taking longer than 60 seconds BUT it doesn’t take 2-3 hours each time. Initially it took quite a while for all of the switches and lights to be recognized but after that it is just really slow loading. We do have weird problems with it every once in a while. Mochad is loaded and running but all of the devices are dead. So I’ve added an automation that checks one device and if it’s not found I stop and start Mochad. I don’t know if this will help you or not but I’ll post the automation yamal.
alias: Mochad switches do not have value
description: use have value template to check
trigger:
- platform: time_pattern
minutes: /15
condition: []
action:
- if:
- condition: template
value_template: "{{ has_value('switch.living_room_led_left') }}"
then: []
else:
- service: hassio.addon_stop
data:
addon: 185c312f_mochad
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- service: hassio.addon_start
data:
addon: 185c312f_mochad
mode: single
I had a mochad version working for years on a remote RPI3.
As the OS needed an upgrade, I reinstalled a new rpi3, with mochad.
Till I discovered the same issue listed here.
Short story (but long troubleshooting):
Version mochad 0.1.17 on old RPI3 → OK
Version mochad 0.1.18 on new RPI3 → ERROR above
tried compiling 0.1.17 → Got a bunch of errors…
so I did some not recommended thing, i copied a part from 0.1.18 to 0.0.17 and recompiled (with many other errors), and there you go, it 's working;
so I fear that there are some strange changes between bot mochad versions …