mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Add plant status card (#2521)
This commit is contained in:
parent
b261e779e5
commit
ad98534195
BIN
demo/public/assets/teachingbirds/plants.png
Normal file
BIN
demo/public/assets/teachingbirds/plants.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
@ -1239,7 +1239,7 @@ export const demoEntitiesTeachingbirds: () => Entity[] = () =>
|
||||
},
|
||||
"sensor.herbs_moisture": {
|
||||
entity_id: "sensor.herbs_moisture",
|
||||
state: "unknown",
|
||||
state: "39",
|
||||
attributes: {
|
||||
unit_of_measurement: "%",
|
||||
friendly_name: "Herbs moisture",
|
||||
@ -1448,7 +1448,7 @@ export const demoEntitiesTeachingbirds: () => Entity[] = () =>
|
||||
},
|
||||
"sensor.big_chili_moisture": {
|
||||
entity_id: "sensor.big_chili_moisture",
|
||||
state: "0",
|
||||
state: "36",
|
||||
attributes: {
|
||||
unit_of_measurement: "%",
|
||||
friendly_name: "Big chili moisture",
|
||||
@ -1497,7 +1497,7 @@ export const demoEntitiesTeachingbirds: () => Entity[] = () =>
|
||||
},
|
||||
"sensor.small_chili_moisture": {
|
||||
entity_id: "sensor.small_chili_moisture",
|
||||
state: "unknown",
|
||||
state: "34",
|
||||
attributes: {
|
||||
unit_of_measurement: "%",
|
||||
friendly_name: "Small chili moisture",
|
||||
|
@ -384,6 +384,48 @@ export const demoLovelaceTeachingbirds: () => LovelaceConfig = () => ({
|
||||
},
|
||||
{
|
||||
cards: [
|
||||
{
|
||||
image: "/assets/teachingbirds/plants.png",
|
||||
elements: [
|
||||
{
|
||||
style: {
|
||||
top: "30%",
|
||||
"--ha-label-badge-font-size": "1em",
|
||||
left: "10%",
|
||||
},
|
||||
type: "state-badge",
|
||||
entity: "sensor.small_chili_moisture",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
top: "30%",
|
||||
"--ha-label-badge-font-size": "1em",
|
||||
left: "25%",
|
||||
},
|
||||
type: "state-badge",
|
||||
entity: "sensor.big_chili_moisture",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
top: "30%",
|
||||
"--ha-label-badge-font-size": "1em",
|
||||
left: "40%",
|
||||
},
|
||||
type: "state-badge",
|
||||
entity: "sensor.herbs_moisture",
|
||||
},
|
||||
{
|
||||
style: {
|
||||
top: "12%",
|
||||
"--ha-label-badge-font-size": "1em",
|
||||
left: "92%",
|
||||
},
|
||||
type: "state-label",
|
||||
entity: "sensor.greenhouse_temperature",
|
||||
},
|
||||
],
|
||||
type: "picture-elements",
|
||||
},
|
||||
{
|
||||
// show_name: false,
|
||||
// entity: "camera.stockholm_meteogram",
|
||||
|
Loading…
x
Reference in New Issue
Block a user