diff --git a/xplora_ha/xplora_ha.py b/xplora_ha/xplora_ha.py index a6c20d4..2b716ba 100755 --- a/xplora_ha/xplora_ha.py +++ b/xplora_ha/xplora_ha.py @@ -119,6 +119,12 @@ class XploraHa: for watch in self.xplora.watchs: self._debug(watch['ward']) base_sensor_entity = f"sensor.xplora_watch_{watch['ward']['name']}_" + self._publish_ha_state( + f"{base_sensor_entity}last_update", + { + "state": time.time() + } + ) for watch_state in WATCH_STATES: function = getattr(self.xplora, watch_state['function']) if 'params' in watch_state: