veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

171
active users

#lovelace

0 posts0 participants0 posts today

Home Assistant gauge card – manually defined colours

This post fits to #TIL (Today I learned) category.

The ‘normal’ way to define colours in a ‘gauge’ card is by defining severity from UI gauge settings. There are only 4 colours available in a sequence: blue, green, yellow, red:

Standard colours are defined using UI by turning on ‘define severity‘ and then entering thresholds for green, yellow, red:

But what if I want to define my own colours (e. g. green-yellow-orange-red)? Sometimes these colours doesn’t visually well represent the sensor value.

Firstly I wanted to define themes but because it didn’t work in a first try, I gave up.

Then I found out that Home Assistant gauge card help offers definining manual ‘segments’ for gauge card. So I switched to manual editing of a gauge and defined segments:

cards:  - type: gauge    entity: sensor.ikea_vindstyrka_airquality_01_voc_index    needle: true    max: 500    name: VOC index - organske spojine    segments:      - from: 0        color: green      - from: 150        color: yellow      - from: 250        color: orange      - from: 400        color: red

For me it was easier than defining and editing ‘themes.yaml’. Maybe I’ll use frontend themes next time.

Tags: #homeassistant #lovelace #gauge #colours

If you’re reading this on fediverse and the layout (embedded pics) is off, here’s the link to the original blog post.

https://blog.rozman.info/home-assistant-gauge-card-manually-defined-colours/

Replied in thread

@kityates

not only was #lovelace the world's first #programmer, she was also the first #AI detractor

and i know that because the first non-#sciencefiction proponent of AI, #alanturing, cited her in his defense of/ argument for AI

#turing framed the foundational thoughts of the entire field of AI, as an argument against ada's thoughts

and she lived many decades before turing!

#adalovelace was an amazing woman

she deserves her own hollywood movie

bbc.com/news/magazine-24565995

BBC NewsA Point of View: Will machines ever be able to think?The pursuit of "machine intelligence" has long interested computer scientists, but will machines ever think for themselves, ask Lisa Jardine.
Replied in thread

@ajaykaul10 @RIDDLES Turing was the original proponent, as you say, but decades before Turing there was the original detractor of #AI: #Lovelace. And Turing seemed to be grumpy about it.

Lovelace, Lord Byron's daughter, was an amazing progenitor. She needs her own damn movie. I find her fascinating.

Apparently her mother was worried about her developing her father's excesses, and steered her upbringing to mathematics, away from literature. It paid off.

en.wikipedia.org/wiki/Ada_Love

en.wikipedia.orgAda Lovelace - Wikipedia
Replied in thread

@ajaykaul10 @RIDDLES

'We do not know how Turing came across Lovelace's notes. But he devotes a significant portion of his 1950 paper to countering what he calls "Lady Lovelace's objection" and he quotes her verbatim.'

We do have to honor the father of computing, #Turing, but we can't forget to honor the mother of computing, Ada #Lovelace. He framed his thoughts on #AI against her thoughts. So he certainly honored her.

bbc.com/news/magazine-24565995

2/2

BBC NewsA Point of View: Will machines ever be able to think?The pursuit of "machine intelligence" has long interested computer scientists, but will machines ever think for themselves, ask Lisa Jardine.

Two years after attaching the shelf to the wall #Lady #Ada #Lovelace finally has taken it as a resting place. 💤

Having moved my bed under the shelf might have made her more accepting.

I moved my bed into the only room tall enough for a ceiling fan. The fan makes hot summer nights in a badly insulated attic flat bearable. 🥵

And now she guards my sleep :blob_rainbowheart:

Please read my pinned post about someone in need.