Comments (6)
I've been experimenting a bit and it can be done with
this.shadowRoot.querySelector('hui-generic-entity-row').shadowRoot.querySelector(".flex .info .secondary slot[name=secondary]).innerHTML = this.value
placed in updateSliders.
It's not pretty, and it needs a bit of configuration option checks and such, but it works.
from lovelace-slider-entity-row.
I have done some trial and error, but can't get the value on the secondary
line.
I am not able to get it in the flex
div in which the name of the entity is, but only in the flex
div in which the slider is. Can you give me some hints?
from lovelace-slider-entity-row.
Thanks, but after some more trial and error I have found out that this is not enough hints for me 😉
And I guess there is a quote missing in the second querySelector
.
from lovelace-slider-entity-row.
You can make it semi smart. For example: when enabled the number shows up instead of toggle but clicking the number would toggle it off (so it's like invisible toggle). When slider is at 0 it would show toggle again and hide the number.
from lovelace-slider-entity-row.
Here's a way to get a custom value into the secondary info spot using card-mod
https://github.com/thomasloven/lovelace-card-mod/blob/master/test/views/tricks.yaml#L163-L170
from lovelace-slider-entity-row.
Thanks! About time to close this issue then 😉
from lovelace-slider-entity-row.
Related Issues (20)
- percentage is disappeared, but only on my mobile device HOT 2
- Hold triggers a right click on the background image HOT 1
- MQTT climate slider is not correct if min/max_temp are configured HOT 4
- "off" word disappeared from light slider after latest HACS or HA update HOT 7
- When covers position is 100% the percentage disappeared HOT 1
- Readonly slider HOT 1
- Cover buttons + slider between text and buttons HOT 1
- restore the last percentage value? HOT 1
- Cannot style this using your card-mod HOT 1
- Full_Row is not working HOT 3
- Value Balloon not showing in 2023.11 HOT 15
- Slider not avaiable on iOS in 2023.11 HOT 18
- Custom Element doesn't exist: slider-entity-row type: custom:slider-entity-row entity: input_number.heatpump_dimplex_si8tu_a047_input HOT 6
- Sliding does not show slider value HOT 6
- Sliders for multiple attributes per row HOT 1
- Shutter percentage disappeared HOT 1
- Support for Sensor HOT 1
- Line of the slider dissapeared on ipad HOT 2
- Show current temperature of climate entities in slider HOT 1
- Single button toggle for covers
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 lovelace-slider-entity-row.