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

I receive a “error loading image”

Check the topic name in HA configuration. Maybe check it also with paho, to see if it’s the right one.

EDIT: Also, I recommend activating “Share pictures” in Zanzito and use the shared picture topic zanzito/shared_pictures/device-name
Make sure you take at least one picture after having configured everything.

in HA is

camera mi5splus:
  - platform: mqtt
    topic: zanzito/shared_pictures/mi5splus
    name: Zanzito MI5SPLUS Camera

in Zanzito the name s mi5splus.

this is the topic of the gps and battery

zanzito/mi5splus/location

how to have these values in HASS?

In includes/camera.yaml
- platform: mqtt topic: zanzito/pixzan/picture
(pixzan being my device name)
In configuration.yaml
camera: !include includes/camera.yaml
and restart HA
Touch and send a picture from zanzito, wait for few minutes before the picture appears in the frontend.

This is wrong?
topic: zanzito/shared_pictures/mi5sp

zanzito/shared_pictures/mi5splus should be good, did you enable “Share photos” in Zanzito->Preferences->photos?

for the location, add

device_tracker:
  - platform: mqtt_json
    devices:
      mi5splus: zanzito/mi5splus/location

then, you can show it in HA frontend by referring to device_tracker.mi5splus

is everything updated to the latest version?

1 Like

For the battery. First select it in Zanzito->preferences->Sensors.
then you have a couple of options. From the location message:

sensor:
  - platform: mqtt
    state_topic: "zanzito/<device-name>/location"
    name: "My device Battery"
    unit_of_measurement: "%"
    value_template: '{{ value_json.battery_level }}'

or directly from the Zanzito’s battery topic:

sensor:
  - platform: mqtt
    name: "My device battery"
    state_topic: "zanzito/<device-name>/battery_level"
    unit_of_measurement: "%"

it works all, exept this. % is correct?

No values shown

% is correct.
Check that you got the sensor name right in HA. in the example, it should be something like sensor.my_device_battery
Try to include it in some group in HA.

yes I have it
sensor.mi5splus_battery

and the value in unknown

Mmh. Can you see the messages from Zanzito in paho, if you subscribe to the same topic?

no value, 0

If you go to Zanzito->View Logs, in the outbound log can you see something like
hh:mm battery_level xx
?

Edit, now is showing

@MrMep According to the user manual, a Python script can be used to send local jpg images to a custom MQTT topic.
Is it also possible to use that script to send a jpg from an url path i.s.o. local disk path?

The script I put in the manual just reads from a local path, it has to be changed a little bit.
As I said, I’m working on a new HA notifier component that will overcome the need for an external script, but that will take a few days more.
Before I was using a shell_command in HA to save locally a snapshot from my webcam, something like:

shell_command:
# Gets snapshot from webcam
  webcam_snapshot: ffmpeg -y -i <webcam-video-url> -vframes 1 <local-path>/snapshot.jpg

as you can see, it uses ffmpeg, I don’t know if that could work with your webcam.

1 Like

A notifier component would certainly be a welcome addition. My cams have some issues with ffmpeg, so that is no option in my case.

With all these great updates at this rate, the Zanzito app is becoming a perfect match to all you need for Home Assistant. Especially when using MQTT. The ability to have Zanzito play a custom notification sound for each custom MQTT topic is golden (for me at least).

If anyone is still on the fence about purchasing this? Just do it, totally worth it!
It has already made several apps obsolete on my phone.
:slight_smile:

2 Likes

Agreed, cool program, buy the app and support the dev

1 Like

Hey but when is Zanzito sending photos?

To me it did without doing a picture!!!

Which is cool but wish to know how it works, don’t want to send inappropriate photos on my hass front end :slight_smile: