samccauley / addon-hassiogooglebackup

A hass.io add-on to backup snapshots to Google Drive
MIT License
90 stars 12 forks source link

MQTT Event #35

Open cnopix opened 4 years ago

cnopix commented 4 years ago

Hi,

i need to check the result of my backup but i don't receive the mqtt event and when i add the sensor the status is unavailable.

if i use Mqtt Explorer to check the db, i don't see google backup.

The rest works with no problem 👍

how can i check ?

samccauley commented 4 years ago

Hi,

i need to check the result of my backup but i don't receive the mqtt event and when i add the sensor the status is unavailable.

if i use Mqtt Explorer to check the db, i don't see google backup.

The rest works with no problem 👍

how can i check ?

Sorry it took me so long to reply. What does your HA configuration for MQTT sensor look like? Here's what I recommend in the readme for my addon:

  - platform: mqtt
    name: "Google Backup Results"
    state_topic: "googlebackup/result"
    json_attributes_topic: "googlebackup/result"
  - platform: mqtt
    name: "Google Adhoc Backup Results"
    state_topic: "googlebackup/adhocresult"
    json_attributes_topic: "googlebackup/adhocresult"

Also, I've not used MQTT Explorer myself, but I've used MQTT Lens for debugging. I've noticed that I need to have MQTT Lens up & running and currently connected and subscribed to the topic in order for events to show up AS THEY HAPPEN. I can't bring up MQTT Lens AFTER running a backup and expect to see the results.

Smandurlo commented 3 years ago

The MQTT event works great. It is not marked as "Retained", so you don't see it in your mqtt db if you check for it AFTER. Open your mqtt explorer program BEFORE, run a dobackup and when it finishes you will see the mqtt entry.