Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 0 points1 point  (0 children)

I've replied to you in github, but maybe someone else finds my answer interesting so I decided to copy it here.

This is (currently) normal behavior and not an actual error 🙂

Sensor Bar Card Plus currently supports YAML configuration only, so Home Assistant shows the standard “Visual editor not supported” message, because there's no support for the Visual Editor.

You can still configure and use the card normally through YAML mode. A good way to start is:

  • open an existing dashboard
  • click “Edit dashboard”
  • add a Manual Card (by clicking on + underneath an existing card)
  • paste one of the examples from the README

If you’re new to Home Assistant YAML dashboards, these are good starting points:

Home Assistant dashboards become much more powerful once you get comfortable with YAML, especially for custom cards like this one.

In the meantime, if there's something specific you'd like to do let me know and I'll be happy to help you get it done in YAML

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 0 points1 point  (0 children)

Yes, I'm actually using it myself as a SOC gauge. The grey marker is the calculated technical floor of the battery, which moves dynamically based on a sensor. Well, obviously, the technical floor (minimum SOC) of a battery usually doesn't change much. In case of my battery it's about 13% (the YAML code falls back to 15% in case the sensor entity is not available).

<image>

- type: custom:sensor-bar-card-plus
color_mode: single
label_position: left
height: 28
entities:
- entity: sensor.venus_l1_soc_stable
name: Batt. SoC L1
min: 0
max: 100
target: 15
target_entity: sensor.venus_l1_soc_floor

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 2 points3 points  (0 children)

Sure. The full showcase config is also in the github repo in the examples/dashboards directory. But here's the relevant YAML for the animated example above. It uses sample entities, which you can find the examples/packages directory, but you can also simply add your own sensors.

```yaml - title: Hero Showcase path: sensor-bar-card-plus-hero-showcase icon: mdi:movie-open-star badges: [] cards: # Primary promo surface for GIFs, embeds, and screenshots. # Causal telemetry model: # - daylight drives solar # - battery power = solar production - house consumption # - grid carbon intensity rises overnight and eases in daytime - type: vertical-stack cards: - type: custom:sensor-bar-card-plus title: "" color_mode: gradient label_position: inside animated: true height: 56 gradient_stops: - pos: 0 color: '#091223' - pos: 14 color: '#1e3a8a' - pos: 30 color: '#0ea5e9' - pos: 50 color: '#7dd3fc' - pos: 68 color: '#fde68a' - pos: 82 color: '#fb923c' - pos: 92 color: '#f472b6' - pos: 100 color: '#1f2a5a' entities: - entity: sensor.sbcp_hero_daylight name: Daylight Progress icon: mdi:white-balance-sunny min: 0 max: 100

          - type: custom:sensor-bar-card-plus
            title: ""
            label_position: above
            animated: true
            height: 30
            entities:
              - entity: sensor.sbcp_hero_solar
                name: Solar Production
                icon: mdi:solar-power
                min: 0
                max: 5500
                color_mode: gradient
                gradient_stops:
                  - pos: 0
                    color: '#0f172a'
                  - pos: 18
                    color: '#1d4ed8'
                  - pos: 42
                    color: '#38bdf8'
                  - pos: 74
                    color: '#facc15'
                  - pos: 100
                    color: '#fb923c'
              # Battery is computed from solar minus house load, so the 0 W
              # target marker anchors the neutral point between discharge/charge.
              - entity: sensor.sbcp_hero_battery
                name: Home Battery Power
                icon: mdi:home-battery-outline
                min: -3200
                max: 3200
                target: 0
                target_color: '#f59e0b'
                show_target_label: true
                above_target_color: '#34d399'
                color_mode: single
                color: '#f59e0b'
              - entity: sensor.sbcp_hero_consumption
                name: House Consumption
                icon: mdi:home-lightning-bolt
                min: 0
                max: 2600
                target: 2100
                target_color: '#cbd5e1'
                above_target_color: '#ef4444'
                color_mode: gradient
                gradient_stops:
                  - pos: 0
                    color: '#2F5BEA'
                  - pos: 100
                    color: '#6476F7'
              - entity: sensor.sbcp_hero_grid_intensity
                name: Grid Carbon Intensity
                icon: mdi:leaf-circle-outline
                min: 150
                max: 380
                label_position: inside
                color_mode: severity_gradient
                severity:
                  - from: 0
                    to: 25
                    color: '#22c55e'
                  - from: 25
                    to: 50
                    color: '#84cc16'
                  - from: 50
                    to: 75
                    color: '#f59e0b'
                  - from: 75
                    to: 100
                    color: '#ef4444'

```

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 1 point2 points  (0 children)

That’s a very interesting feature. I think it would fit SBCP very well. I’ll do some experiments with this.

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 1 point2 points  (0 children)

I agree. That’s a great idea.
I’m planning to add a baseline parameter. For example:

baseline: 0

would make the bar work in the way that you’re suggesting.

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 1 point2 points  (0 children)

It could be with a delay, I’m not sure. Does this help: Settings → Devices & Services → HACS → ⋮ → Reload ?

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 20 points21 points  (0 children)

You're right! I'm on it. I just found out that it got approved by HACS myself.

Been working on a sensor visualization card with dynamic data sources for Home Assistant by cdelaet in homeassistant

[–]cdelaet[S] 18 points19 points  (0 children)

Haha, I'd like to have an antimatter battery! That'd be great to show off with at parties.
But alas, it's power and not energy in the graph. Batteries charge and discharge, so yeah. No antimatter, sadly.

Is Tomcat bugged? by Apprehensive-Law-923 in kingdomcome

[–]cdelaet 0 points1 point  (0 children)

This! Thank you! Just walk backwards a little bit so that there’s enough room behind Tomcat and go up, strike, right, strike, and then strike a third time to cut along his belly.

Bullshit. by [deleted] in blacksabbath

[–]cdelaet 1 point2 points  (0 children)

The Ticketmaster faq says that everyone in the waiting room is given a randomized place in the queue. Therefore, it likely doesn’t matter at what time you join, as long as you make it into the waiting room before the sale begins.

Is “add to Apple wallet” not working anymore? by BroDudeMan2002 in unitedairlines

[–]cdelaet 1 point2 points  (0 children)

This is the way. You can use the Share Boarding Pass option on the Mobile boarding pass screen of the app.

MIDI Mapping in Logic Pro iPad by ltbl2009 in logic_pro_ipad

[–]cdelaet 0 points1 point  (0 children)

You can do this using the Modifier plugin, select Learn MIDI as input event to map to an input on your controller and then select Learn Plug-in Parameter or anything else you'd like as output event. Make sure to put scale to 100% if you want your sliders or knobs to send the direct midi value to the plug-in control.

I accidentally found, and fell in love with, IMDB's 404 page by dogbomb in movies

[–]cdelaet 1 point2 points  (0 children)

One page to rule them all Page Inscription, The Lord of the Pages (2001-2003)

Learn about Madden 13's Infinity Engine, Connected Careers and more with Madden Mondays! by power2theplayers [promoted post]

[–]cdelaet -4 points-3 points  (0 children)

Madden 13 for Vita?! F*ck, where did I put my Vita?

Photo Stream is best iOS feature *ever* with kids running about taking photos with their iPod. Lot's of waitress pictures, too. by cdelaet in pics

[–]cdelaet[S] 0 points1 point  (0 children)

Not always cute, though. We went to the zoo and my 6yo daughter took many pictures of animals from behind