Browse Source

Add uv sensor to plant dashboard, update plant dashboard precision

master
KemoNine 2 years ago
parent
commit
558c73b435
  1. 3
      appdaemon/dashboards/Plant_Monitor.dash
  2. 5
      appdaemon/dashboards/Plant_Monitor_Mobile.dash
  3. 27
      appdaemon/dashboards/plant_dashboard.yaml
  4. 9
      sensors/plant_dashboard.yaml

3
appdaemon/dashboards/Plant_Monitor.dash

@ -4,7 +4,7 @@ widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 6
rows: 3
rows: 4
global_parameters:
use_comma: 0
precision: 0
@ -27,4 +27,5 @@ layout:
- include: plant_dashboard
- nav_main, clock(2x1), nav_mobile, nav_back, reload
- plant_dashboard_status, plant_dashboard_temperature, plant_dashboard_humidity, plant_dashboard_battery_alert, plant_dashboard_battery_level, plant_dashboard_wifi
- plant_dashboard_uva, plant_dashboard_uvb, plant_dashboard_uv_index, spacer(3x1)
- spacer, plant_dashboard_plant_2, spacer(4x1)

5
appdaemon/dashboards/Plant_Monitor_Mobile.dash

@ -4,7 +4,7 @@ widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 3
rows: 5
rows: 6
global_parameters:
use_comma: 0
precision: 0
@ -29,4 +29,5 @@ layout:
- nav_desktop, clock(2x1)
- plant_dashboard_status, plant_dashboard_temperature, plant_dashboard_humidity
- plant_dashboard_battery_alert, plant_dashboard_battery_level, plant_dashboard_wifi
- spacer, plant_dashboard_plant_2, spacer
- plant_dashboard_uva, plant_dashboard_uvb, plant_dashboard_uv_index
- spacer, plant_dashboard_plant_2, spacer

27
appdaemon/dashboards/plant_dashboard.yaml

@ -19,6 +19,7 @@ plant_dashboard_battery_level:
entity: sensor.plant_dashboard_battery_level
title: Battery Level
units: '%'
precision: 1
plant_dashboard_battery_voltage:
widget_type: sensor
@ -30,6 +31,7 @@ plant_dashboard_humidity:
entity: sensor.plant_dashboard_humidity
title: Humidity
units: '%'
precision: 1
plant_dashboard_temperature:
widget_type: sensor
@ -37,12 +39,14 @@ plant_dashboard_temperature:
sub_entity: sensor.plant_dashboard_temperature_c
title: Temperature
units: '°F'
precision: 1
plant_dashboard_wifi:
widget_type: sensor
entity: sensor.plant_dashboard_wifi
title: WiFi Signal
units: 'dB'
precision: 1
plant_dashboard_plant_2:
widget_type: gauge
@ -51,3 +55,26 @@ plant_dashboard_plant_2:
units: ""
min: 250
max: 1024
plant_dashboard_battery_voltage:
widget_type: sensor
entity: sensor.plant_dashboard_battery_voltage
units: 'V'
plant_dashboard_uva:
widget_type: sensor
entity: sensor.plant_dashboard_uva
title: "uva"
precision: 1
plant_dashboard_uvb:
widget_type: sensor
entity: sensor.plant_dashboard_uvb
title: "uvb"
precision: 1
plant_dashboard_uv_index:
widget_type: sensor
entity: sensor.plant_dashboard_uv_index
title: "uv index"
precision: 1

9
sensors/plant_dashboard.yaml

@ -31,3 +31,12 @@
- platform: mqtt
name: plant_dashboard_plant_2
state_topic: "plant_dashboard/sensor/plant_2/state"
- platform: mqtt
name: plant_dashboard_uva
state_topic: "plant_dashboard/sensor/uva/state"
- platform: mqtt
name: plant_dashboard_uvb
state_topic: "plant_dashboard/sensor/uvb/state"
- platform: mqtt
name: plant_dashboard_uv_index
state_topic: "plant_dashboard/sensor/uv_index/state"

Loading…
Cancel
Save