Comments (4)
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 toft
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")) }}
- "Office Desk Connected" with a template of
- Add statistics sensor that tracks the height change. I think at present this is still a YAML only feature? Mine looks something like this:
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.
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.
Completely agree! Can we have it working?
from linak-desk-card.
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)
- Desk height NaN - card buttons don't work HOT 4
- German Translation HOT 2
- Use this card with a simple bluetooth dongle instead of an ESP32 device HOT 3
- The automated release is failing 🚨
- Add stop button as well
- presets with sensor value
- Install the component without HACS HOT 2
- card showing incorrect height HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linak-desk-card.