GithubHelp home page GithubHelp logo

Comments (4)

ammmze avatar ammmze commented on May 28, 2024 3

Thanks for setting up that fork. Some additional notes I have around using that with the HASS integration...

  • I needed to enable the height sensor. It was disabled by default.
  • I needed to change height unit of measurements to cm (it defaulted to ft for me in USA).
  • To get the "connection" and "moving" binary_sensors, I had to do the following:
    • Add statistics sensor that tracks the height change. I think at present this is still a YAML only feature? Mine looks something like this:
      sensor:
        - platform: statistics
          unique_id: office_desk_height_change
          name: 'Office desk height change'
          entity_id: sensor.office_desk_height
          state_characteristic: change_sample
          max_age:
            seconds: 1
          sampling_size: 2
          precision: 3
    • Add 2 binary template sensor helpers (Settings > Devices & Services > Helpers > Create Helper > Template > Template a binary sensor) configured as the following:
      • "Office Desk Connected" with a template of {{ not is_state("cover.office_desk", "unavailable") }}
      • "Office Desk Moving" with a template of {{ is_number(states("sensor.office_desk_height_change")) }}

Then you should be able to use those 2 binary sensors as the connection status and moving sensors in the linak card.

from linak-desk-card.

bernikr avatar bernikr commented on May 28, 2024 1

I made a fork that can work with the new height sensor: https://github.com/bernikr/linak-desk-card

To use it:

  • uninstall the lineak-desk-card in hacs
  • add https://github.com/bernikr/linak-desk-card in hacs as a custom repository
  • install the new lineak-desk-card
  • make sure the desk height sensor in home assistant is set to cm and not any other unit.

I dont have the time to maintain the fork properly so I hope @IhorSyerkov will be able to incorporate it into the main card. Right now it doesn't support the connection state and min and max_height from the config are ignored and set to 62 and 127 respectively, which are the limits of the desk height sensor.

from linak-desk-card.

KristianDukov avatar KristianDukov commented on May 28, 2024

Completely agree! Can we have it working?

from linak-desk-card.

ex-nerd avatar ex-nerd commented on May 28, 2024

May also need additional configuration for those of us with a height offset configured (to account for a custom top). When my desk is at 28in, Home Assistant is reporting it as 28.47in. But maybe there is a chance to get this added to the official plugin (or a fork), since I know that offset value is available somewhere in the bluetooth data (shows in the Linak Desk Control app, and some python bluetooth stuff I experimented with when I originally set up my desk).

from linak-desk-card.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.