iMicknl / LoctekMotion_IoT

Learn how to connect your Flexispot (LoctekMotion) desk to the internet. This repository contains a collection of scripts to get your started, combined with research and instructions.
MIT License
625 stars 61 forks source link

[v2] Proper external component for height sensor #84

Closed jamesmyatt closed 5 months ago

jamesmyatt commented 6 months ago

I think works as an external component. See #67. Can be tested by using the yaml config from the PR with:

external_components:
  source: github://jamesmyatt/LoctekMotion_IoT@v2.2
  components: [ loctekmotion_desk_height ]

This is modelled on the code for https://esphome.io/components/sensor/a01nyub.html. Which can be found here: https://github.com/esphome/esphome/tree/dev/esphome/components/a01nyub.

jamesmyatt commented 5 months ago

@iMicknl , the config in this PR assumes a "v2.2" branch in this repo. Can you add one or change the config to v2.1, please?