Announcing MQTT/Android bridging app: Zanzito. Beta testers wanted!

Hi,
to restore prefs (or send them to another device) you have to use the topic:

zanzito/<device-name>/restore_prefs

of course, remember to re-change the device name after cloning the prefs.

EDIT: Backup configuration must be enabled in Advanced preferences

1 Like

Very good suggestion,I’ve added it to my list :wink:

1 Like

I had to uninstall and reinstall. Now my photos taken on the phone do not show up in hass

In the log when I take a picture it shows
zanzito/mydevicename/picture [data ]

but not in HASS

camera mydevicename:
  - platform: mqtt
    topic: zanzito/mydevicename/pictures
    name: Zanzito  Camera

Thanks for that!
:slight_smile:

Another thing I would like to suggest is to have the option to save both sent and received images locally on the phone or tablet. Now they are overwritten with each new notification from HASS or picture sent from device.
What is the use for the gallery when I only see the latest versions of these images?
:wink:

I know there are ways around that by having HASS store them otherwise for keepsake, but it would be a welcome addition.
Or even some kind of sequential way for the naming convention of the files, so they are not overwritten?

it’s picture (without ‘s’)

Generally speaking, my advice is to create HA camera from shared pictures topic:

  1. Enable Share photos in Zanzito
  2. define the mqtt camera with topic: zanzito/shared_pictures/mydevicename

Shared pictures are retained on the MQTT server, while regular pictures are not.

mmhh I forgot that, I saw the log and was written the other topic, so I modified the configuration.yaml

it works, now the logs sends 2 topics, why?
zanzito/shared_pictures/mydevicename
and
zanzito/mydevicename/picture

its a bit confusing.

I had a long debate with myself about this :wink:
But at the end I considered the following:

  1. Image archiving is something you would want to do where you have the resources to do so (server side, as you said)
  2. Zanzito is meant to be lightweight: archiving and managing maybe hundreds images would be complicated…
  3. The gallery serves to have the situation under control at glance: like the rest of Zanzito, it’s about real time interaction.

But, if you have different image sources in HA, you can setup different notifier components, with fake device names, and then add a custom picture report for each of them: that way, at least, photo notifications from different sources wouldn’t overwrite each other.

So that the same picture is available to both topics, for different usages.

I understand, all valid arguments.
:wink:

Now I finally know that I use the embedded mqtt, still trying to find my CA certificate

nada is not working, and zanzito crashes

Can you send a crash report? Android should ask you to do that after the crash.

thanks
gl

sent now 21.06

1 Like

in ptreferences mqtt connection host
I have to put

https://myname.duckdns.org

or

myname.duckdns.org

?

it crashes if I put https, bu if I do not put it, is not going https, but http I think

First of all, there’s a bug in the address validation code, so thank you!
Zanzito was supposed to check the host name before attempting a connection, but it didn’t work.
The fix will be in the next release.

Second, yes, without http:// or https://, just the server name, and check SSL connection in the prefs

ok, the log now says
Not connected: unable to resolve host
“myaddress” No address associated with hostname

failed to connect to "myhostname/mywanipaddress (port 1883) after 30000ms

maybe you’re trying to connect to your public address from within the local network?

no I disabled wifi, I was on 3g

what did you put in Host name preference?