diff --git a/appdaemon/dashboards/Main.dash b/appdaemon/dashboards/Main.dash index 505e8fa..19694aa 100644 --- a/appdaemon/dashboards/Main.dash +++ b/appdaemon/dashboards/Main.dash @@ -46,6 +46,12 @@ nav_sensors: icon_inactive: mdi-gauge widget_style: "background: MEDIUMSLATEBLUE;" +nav_plant_monitor: + widget_type: navigate + dashboard: Plant_Monitor + icon_inactive: mdi-pine-tree + widget_style: "background: MEDIUMSLATEBLUE;" + nav_mobile: widget_type: navigate dashboard: Main_Mobile @@ -84,6 +90,6 @@ layout: - nav_weather, current_weather(2x1), tracked_device_1, tracked_device_2, nav_desk - bedroom_tv(3x2), living_room_tv(3x2) - - - nav_sensors, nav_entertainment, nav_cameras, nav_status, spacer(3x1) + - nav_plant_monitor, nav_sensors, nav_entertainment, nav_cameras, nav_status, spacer(2x1) - camera_stairs(3x2), camera_living_room(3x2) - diff --git a/appdaemon/dashboards/Main_Mobile.dash b/appdaemon/dashboards/Main_Mobile.dash index c2970b8..89951e5 100644 --- a/appdaemon/dashboards/Main_Mobile.dash +++ b/appdaemon/dashboards/Main_Mobile.dash @@ -46,6 +46,12 @@ nav_sensors: icon_inactive: mdi-gauge widget_style: "background: MEDIUMSLATEBLUE;" +nav_plant_monitor: + widget_type: navigate + dashboard: Plant_Monitor_Mobile + icon_inactive: mdi-pine-tree + widget_style: "background: MEDIUMSLATEBLUE;" + nav_desktop: widget_type: navigate dashboard: Main @@ -80,7 +86,7 @@ layout: - include: cameras - include: entertainment - include: tracked_devices - - nav_main_mobile, spacer, reload + - nav_main_mobile, nav_plant_monitor, reload - nav_desktop, clock(2x1) - nav_weather, current_weather(2x1) - nav_desk, tracked_device_1, tracked_device_2 diff --git a/appdaemon/dashboards/Plant_Monitor.dash b/appdaemon/dashboards/Plant_Monitor.dash new file mode 100644 index 0000000..7d282a1 --- /dev/null +++ b/appdaemon/dashboards/Plant_Monitor.dash @@ -0,0 +1,29 @@ +# Dashboard Config +title: Home +widget_dimensions: [120, 120] +widget_size: [1, 1] +widget_margins: [5, 5] +columns: 6 +rows: 3 +global_parameters: + use_comma: 0 + precision: 0 + use_hass_icon: 1 + +nav_back: + widget_type: navigate + dashboard: Main + icon_inactive: mdi-arrow-left-bold-outline + widget_style: "background: MEDIUMSLATEBLUE;" + +nav_mobile: + widget_type: navigate + dashboard: Plant_Monitor_Mobile + icon_inactive: mdi-cellphone-basic + widget_style: "background: MEDIUMSLATEBLUE;" + +layout: + - include: header + - include: plant_monitor + - nav_main, clock(2x1), nav_mobile, nav_back, reload + - plant_monitor_status, plant_monitor_temperature, plant_monitor_humidity, plant_monitor_battery_alert, plant_monitor_battery_level, plant_monitor_wifi diff --git a/appdaemon/dashboards/Plant_Monitor_Mobile.dash b/appdaemon/dashboards/Plant_Monitor_Mobile.dash new file mode 100644 index 0000000..f3ea2f7 --- /dev/null +++ b/appdaemon/dashboards/Plant_Monitor_Mobile.dash @@ -0,0 +1,31 @@ +# Dashboard Config +title: Home +widget_dimensions: [120, 120] +widget_size: [1, 1] +widget_margins: [5, 5] +columns: 3 +rows: 4 +global_parameters: + use_comma: 0 + precision: 0 + use_hass_icon: 1 + +nav_back: + widget_type: navigate + dashboard: Main_Mobile + icon_inactive: mdi-arrow-left-bold-outline + widget_style: "background: MEDIUMSLATEBLUE;" + +nav_desktop: + widget_type: navigate + dashboard: Plant_Monitor + icon_inactive: mdi-laptop-chromebook + widget_style: "background: MEDIUMSLATEBLUE;" + +layout: + - include: header + - include: plant_monitor + - nav_main_mobile, nav_back, reload + - nav_desktop, clock(2x1) + - plant_monitor_status, plant_monitor_temperature, plant_monitor_humidity + - plant_monitor_battery_alert, plant_monitor_battery_level, plant_monitor_wifi diff --git a/appdaemon/dashboards/plant_monitor.yaml b/appdaemon/dashboards/plant_monitor.yaml new file mode 100644 index 0000000..7c2dbbe --- /dev/null +++ b/appdaemon/dashboards/plant_monitor.yaml @@ -0,0 +1,45 @@ +plant_monitor_status: + widget_type: icon + entity: sensor.plant_monitor_status + icons: + "ON": + icon: mdi-pine-tree + default: + icon: mdi-pine-tree + style: "color: red" + +plant_monitor_battery_alert: + widget_type: binary_sensor + entity: sensor.plant_monitor_battery_alert + icon_on: mdi-battery-10 + icon_off: mdi-battery + +plant_monitor_battery_level: + widget_type: sensor + entity: sensor.plant_monitor_battery_level + title: Battery Level + units: '%' + +plant_monitor_battery_voltage: + widget_type: sensor + entity: sensor.plant_monitor_battery_voltage + units: 'V' + +plant_monitor_humidity: + widget_type: sensor + entity: sensor.plant_monitor_humidity + title: Humidity + units: '%' + +plant_monitor_temperature: + widget_type: sensor + entity: sensor.plant_monitor_temperature_f + sub_entity: sensor.plant_monitor_temperature_c + title: Temperature + units: '°F' + +plant_monitor_wifi: + widget_type: sensor + entity: sensor.plant_monitor_wifi + title: WiFi Signal + units: 'dB'