]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added presence sensor for the office
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 27 Oct 2026 10:24:40 +0000 (11:24 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 27 Oct 2026 10:42:43 +0000 (11:42 +0100)
.storage/lovelace.lovelace_devices
.storage/lovelace.lovelace_settings
customizations/zigbee.yaml
log/logbook.yaml
log/recorder.yaml

index 5868fc6dd7fcf4db97bc33e43875b4cf065b22f4..3ff17839910373ad11e9a2346f70c7bda9ba5c27 100644 (file)
                 }
               ]
             },
+            {
+              "type": "grid",
+              "cards": [
+                {
+                  "type": "heading",
+                  "heading": "Sensore Presenza Studio - SONOFF SNZB-03P",
+                  "heading_style": "title"
+                },
+                {
+                  "type": "entities",
+                  "show_header_toggle": "off",
+                  "style": ".card-header {\n  padding: 0px 0px 0px 0px !important;\n}\n",
+                  "entities": [
+                    {
+                      "type": "custom:hui-element",
+                      "card_type": "vertical-stack",
+                      "cards": [
+                        {
+                          "type": "horizontal-stack",
+                          "cards": [
+                            {
+                              "type": "picture",
+                              "style": "ha-card { \n    --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n    --ha-card-background: \"rgba(0, 0, 0, 0)\";\n    --ha-card-box-shadow: 'none';\n}\n",
+                              "image": "https://www.zigbee2mqtt.io/images/devices/SNZB-03P.png"
+                            },
+                            {
+                              "type": "vertical-stack",
+                              "cards": [
+                                {
+                                  "type": "custom:button-card",
+                                  "template": "template_device_generic_state",
+                                  "entity": "binary_sensor.sensore_presenza_studio_occupancy",
+                                  "name": "Stato"
+                                },
+                                {
+                                  "type": "custom:button-card",
+                                  "template": "template_device_generic_battery_state",
+                                  "entity": "sensor.sensore_presenza_studio_illumination",
+                                  "name": "Illuminazione"
+                                },
+                                {
+                                  "type": "custom:button-card",
+                                  "template": "template_device_generic_battery_state",
+                                  "entity": "sensor.sensore_presenza_studio_battery",
+                                  "name": "Batteria"
+                                }
+                              ]
+                            }
+                          ]
+                        }
+                      ]
+                    }
+                  ]
+                }
+              ]
+            },
             {
               "type": "grid",
               "cards": [
index 81276d4df870d7cc42a8aedc4a04cae7f1145598..6639dd1e7613abb866f8143145abf30d6df9089a 100644 (file)
                 }
               ]
             }
-          ],
-          "max_columns": 3,
-          "path": "config"
+          ]
         },
         {
           "icon": "mdi:zigbee",
                       "entity": "sensor.sensore_acqua_veranda_battery",
                       "name": "Sensore Acqua Veranda"
                     },
+                    {
+                      "entity": "sensor.sensore_presenza_studio_battery",
+                      "name": "Sensore Presenza Studio"
+                    },
+                    {
+                      "entity": "sensor.sensore_presenza_bagno_grande_battery",
+                      "name": "Sensore Presenza Bagno Grande"
+                    },
                     {
                       "entity": "sensor.wireless_button_battery",
                       "name": "wireless_button"
index 2798cdefb9aca4a9cc3da71a301b05fa8873ea8f..7c3e3e68669f9e2bf0774574750a588bd03cd3ed 100644 (file)
@@ -147,3 +147,15 @@ sensor.sensore_presenza_bagno_grande_illumination:
   friendly_name: "Illuminazione"
 sensor.sensore_presenza_bagno_grande_voltage:
   friendly_name: "Tensione"
+
+# Sensore Presenza Studio
+binary_sensor.sensore_presenza_studio_occupancy:
+  friendly_name: "Presenza Rilevata"
+number.sensore_presenza_studio_motion_timeout:
+  friendly_name: "Timeout"
+sensor.sensore_presenza_studio_battery:
+  friendly_name: "Sensore Batteria"
+sensor.sensore_presenza_studio_illumination:
+  friendly_name: "Illuminazione"
+sensor.sensore_presenza_studio_voltage:
+  friendly_name: "Tensione"
index 013bb8c48430a4b1cc09b1cfe66ea11f2ba0d28f..e0f4eccacb7c82cbfcc0247b3fcf2c6f62b4ed9e 100644 (file)
@@ -98,6 +98,10 @@ exclude:
     - sensor.sensore_presenza_bagno_grande_battery
     - sensor.sensore_presenza_bagno_grande_illumination
     - sensor.sensore_presenza_bagno_grande_voltage
+    - binary_sensor.sensore_presenza_studio_occupancy
+    - sensor.sensore_presenza_studio_battery
+    - sensor.sensore_presenza_studio_illumination
+    - sensor.sensore_presenza_studio_voltage
     # pfSense
     - binary_sensor.freebsd_router_stato_della_wan
     #- sensor.freebsd_router_dati_inviati
index 6119fbac4931e8a29cc34b871572e1d66c24e974..78e5f80d3d8f4f4def27246c6f8a56d928df99f4 100644 (file)
@@ -100,6 +100,10 @@ exclude:
     - sensor.sensore_presenza_bagno_grande_battery
     - sensor.sensore_presenza_bagno_grande_illumination
     - sensor.sensore_presenza_bagno_grande_voltage
+    - binary_sensor.sensore_presenza_studio_occupancy
+    - sensor.sensore_presenza_studio_battery
+    - sensor.sensore_presenza_studio_illumination
+    - sensor.sensore_presenza_studio_voltage
     # pfSense
     - binary_sensor.freebsd_router_stato_della_wan
     #- sensor.freebsd_router_dati_inviati