Switchbot Curtains

I have implemented the Switchbot-curtain integration using Hacs. The folder switchbot-curtain is now under the custom-components folder.

However, when adding the curtain entry to the configuration.yaml, it is not recognised:

cover:
  - platform: switchbot-curtain
    mac: XX:XX:XX:XX:XX:8C
    name: 'Living Room Curtains'
Value is not accepted. Valid values: "mqtt".yaml-schema: http://schemas.home-assistant.io/configuration(1)

I have restarted Home Assistant so it should have been applied correctly. Certainly looks ok in Hacs

Not sure what I need to do to get this recognised. I did also try a manual integration without Hacs but same issue.

I have installed and restarted many time, including extra restarts before updating the configuration.yaml but get the same result every time.

Trying to think of things installed that may be affecting this. I do have PythonScript and latterly PyScript integrated and wondered if this could affect the python in the custom-components sub folder. However, other custom integrations, such a Sonoff, seem to be ok.

configuration.yaml error:

folder structure after integration:
Screenshot 12-07-2021 20.57.46

just proof that I did restart between attempts:

error without expansion of details:

hacs integration screen showing implementation completed:

Isn’t the integration included with core and configurable via gui?

Bluetooth on my pi wasn’t strong enough so I use mqtt and a esp32 now and much happier.

As I have had other Switchbot integration issues with mac addresses being swapped, either at integration time or when interacting, I may try the esp32 route. It doesn’t look too expensive or complicated so is worth a go.

I rather jumped at this without knowing what I was doing. I saw videos on setting up a esp32 with HA (particularly Home Assistant SwitchBot MQTT integration using D1 mini ESP32 | SwitchBot Motion & Contact Sensors - YouTube which looked easy).

However, I rushed and bought a Seamuing ESP32 Module OLED Display board with no real investigation and have found it does not appear on Arduino list of boards. not sure what to do now…

Sorted it. Realised the board is a wifi kit 32 board. Then, another schoolboy error by me. Accidentally used charge cable instead of data cable to connect the esp32.

After some huffing and puffing, I finally got mqtt switchbot working with the esp32. It has solved all the switchbot mac address issues I was having in the switchbot integration and I must admit, I am sold on the esp arduino route now.