diff --git a/dashboards/views/11_vedligehold.yaml b/dashboards/views/11_vedligehold.yaml index cb80903..ae7062a 100644 --- a/dashboards/views/11_vedligehold.yaml +++ b/dashboards/views/11_vedligehold.yaml @@ -1929,4 +1929,28 @@ sections: card: type: tile entity: sensor.annes_havesensor_soil_battery_4 - name: Havesensor 4 batteri \ No newline at end of file + name: Havesensor 4 batteri + + # LinkTap hovedhane - batteri + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "on" + card: + type: tile + entity: sensor.hovedhane_linktap_battery + name: Hovedhane (LinkTap) batteri + + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "off" + - condition: numeric_state + entity: sensor.hovedhane_linktap_battery + below: 20 + card: + type: tile + entity: sensor.hovedhane_linktap_battery + name: Hovedhane (LinkTap) batteri \ No newline at end of file diff --git a/include/templates/maintenance.yaml b/include/templates/maintenance.yaml index 6ca0d3e..f72b757 100644 --- a/include/templates/maintenance.yaml +++ b/include/templates/maintenance.yaml @@ -154,6 +154,7 @@ or states('sensor.annes_havesensor_soil_battery_2') | float(9) < 1.2 or states('sensor.annes_havesensor_soil_battery_3') | float(9) < 1.2 or states('sensor.annes_havesensor_soil_battery_4') | float(9) < 1.2 + or states('sensor.hovedhane_linktap_battery') | float(100) < 20 }} - sensor: @@ -201,6 +202,7 @@ 1 if states('sensor.annes_havesensor_soil_battery_2') | float(9) < 1.2 else 0, 1 if states('sensor.annes_havesensor_soil_battery_3') | float(9) < 1.2 else 0, 1 if states('sensor.annes_havesensor_soil_battery_4') | float(9) < 1.2 else 0, + 1 if states('sensor.hovedhane_linktap_battery') | float(100) < 20 else 0, 1 if states('sensor.affalddk_norgardsvej_22_restaffald') | float(999) <= 1 else 0, 1 if states('sensor.affalddk_norgardsvej_22_papir_plast') | float(999) <= 1 else 0, 1 if states('sensor.affalddk_norgardsvej_22_haveaffald') | float(999) <= 1 else 0,