Why does my coding differ from 90% of the example codes?
for instance with the type of card at the top this works, however after i come back to it later, the type will be moved to the bottom:
type: horizontal-stack
cards:
- entities:
- entity: switch.side_door_light
type: entities
- entities:
- entity: light.front_door_light
type: entities
after a restart:
cards:
- entities:
- entity: switch.side_door_light
type: entities
- entities:
- entity: light.front_door_light
type: entities
type: horizontal-stack
They both work, but is it doing this?
another example straight from the github page for this custom card example code:
- type: custom:mini-graph-card
entities:
- sensor.sensor_temperature
show:
labels: true
color_thresholds:
- value: 20
color: "#f39c12"
- value: 21
color: "#d35400"
- value: 21.5
color: "#c0392b"
When I paste this, I get: No card type found
If i remove the - and fix the indention it works, however after a reboot the Type is back at the bottom. Also the - will be moved to the Color: instead of the Value: like every example.
color_thresholds:
value: 20
- color: "#f39c12"
Basically every time i copy someones examples, they Never work. I always have to modify it usually its just removing the - and fixing the indention., but it gets repetitive and tiring.
one last example: Raw editer / ui-lovelace.yaml:
every example I see for this has the - on the URL. mine will NOT load if i do it that way:
examples:
resources:
- url: /local/custom-card.js
type: js
Mine:
resources:
- type: js
url: /local/custom-card.js
Whats the deal here?