Add plant status card (#2521)

This commit is contained in:
Paulus Schoutsen 2019-01-21 00:23:58 -08:00 committed by GitHub
parent b261e779e5
commit ad98534195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -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",

View File

@ -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",