Comments (5)
The card reads the entity's attributes as a dict and treats each key/value pair as an item. If you've got your items as a list of dicts, you can't set it directly on the entity attributes, and the card doesn't allow defining an attribute which contains the list of items.
Additionally, there's no way of using templates to convert lists to dicts, but since you're using node-red, you might have more options there.
from list-card.
Just for the record, in case someone with the same issue stumbles over this thread, here's how I solved it: https://github.com/DarkFox/ha-config/blob/687791a/packages/integrations/weather.yaml#L123-L128
xkcd.com/979
from list-card.
@DarkFox has the right idea. Going to close this as not really an issue. Feel free to submit a PR for extended use cases
from list-card.
Just for the record, in case someone with the same issue stumbles over this thread, here's how I solved it: https://github.com/DarkFox/ha-config/blob/687791a/packages/integrations/weather.yaml#L123-L128
Please forgive my ignorance, but can you elaborate a little as I'm not sure I understand. You solved the issue that I was having by replacing ' with " in the string that you published to an mqtt sensor?
from list-card.
It's because HA's string conversion outputs it with single quotes, which isn't valid JSON, so it won't get parsed by the mqtt sensor.
from list-card.
Related Issues (20)
- Using templates HOT 2
- Icon field with link
- 2021.7 HA update and new Python HOT 2
- Subfield. multidimensional HOT 5
- Feature Request: Ability to sort on any field HOT 2
- Styling the Card HOT 2
- Installed via HACS, visible in Resources, but not usable in YAML HOT 5
- Feature Request: Allow templating of field HOT 2
- Link isnβt clickable on mobile
- How to display enclosed images? HOT 11
- Cant find in HACS HOT 2
- Error when card is displayed before the sensor gets updated for the first time
- Cannot select text in the list HOT 2
- Not so much an issue, but something fun made with your work!
- Feature request: user should be able to select, copy cell contents HOT 1
- How can I use data sources that aren't RSS? HOT 1
- "Buy me a coffee" link is broken
- Card is not visible in home assistant HOT 2
- Possibility to scroll down automatically the list for news display HOT 1
- Possibility for a date & Time Column
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 list-card.