I am going to try to explain how to have the information of what happens in Zipatile in Homeassistant, as far as I know, this is only used for the internal sensors of the Zipatile. I’m not an expert, maybe you already know many things that I explain and surely there are many ways to do it in a different and better way, but this is how it works for me:
-
First you need to have an MQTT broker that “reads” the messages from the Zipatile.
I use the Broker MQTT addon and the MQTT integration, configured in Home Assistant.
-
Create a user in Homeassistant to connect to the MQTT Broker.
Give a name, username and password (which we will use later).
-
In Zipatile:
a) Open Zipato application and press menu (three lines, top left)
b) Click on “options”
c) Click on “internal”
d) The internal application will open, now click on the menu (three buttons, top right)
e) Select the option “MQTT Settings”
f) Fill in the data to communicate with the MQTT Broker:
username: login of the user created in homeassistant
password: password of the user created in homeassistant
client ID: whatever you want, in my case, I put Zipatile
topic: topic under which the zipatile messages will be published in MQTT
host: IP and port of the MQTT broker
… finally, press “CONNECT”
** If so far everything has gone ok, on the Zipatile screen we will see “CONNECTED”.
.
4. Now, we can verify that Home Assistant “reads” the messages from the Zipatile, for this:
a) Go to Configuration/Integrations/MQTT and press “CONFIGURE”
b) In the “Listen a Topic” section, where it says “Topic to subscribe to”, in my case I indicate “homeassistant/zipato/zipatile/#”, and I see the messages of my Zipatile, if you are not sure about your topic, You can always just type “#” and you will see all the messages that arrive at the MQTT Broker:
- View these Zipatile sensors on Homeassistant. I use YAML, for this:
a) Use the addon File editor or Visual Studio Code (I prefer the latter)-
b) Under the “sensor” platform, create the sensors that you are interested in seeing, I put the ones that I use, but this is totally customizable:
sensor:
- platform: mqtt
unique_id: zipatile_conexion
name: Zipatile Conexión
state_topic: "zigbee2mqtt/bridge/state"
- platform: mqtt
unique_id: zipatile_temperatura
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/temperature/events"
name: Temperatura Salón Zipatile
unit_of_measurement: "°C"
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_pir
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/motion/events"
name: Presencia Salón Zipatile
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_humedad
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/humidity/events"
name: Humedad Salón Zipatile
unit_of_measurement: "%"
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_luminosidad
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/light/events"
name: Luminosidad Salón Zipatile
unit_of_measurement: "lux"
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_sonido
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/noise/events"
name: Sonido Salón Zipatile
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_rele2
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/relay2/events"
name: Zipatile Rele 2
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_rele1
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/relay1/events"
name: Zipatile Relé 1
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_power
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/mains_power/events"
name: Zipatile Corriente
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_siren
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/siren/events"
name: Sirena Salón Zipatile
value_template: "{{value_json['value']}}"
- platform: mqtt
unique_id: zipatile_tactil
state_topic: "homeassistant/zipato/zipatile/idyourzipatile/touch_events/events"
name: Pantalla Táctil Salón Zipatile
value_template: "{{value_json['value']}}"
- Restart Homeassistant and enjoy the new possibilities of seeing this information and using it in automations, Node-red or whatever comes to mind!
Hopefully it will serve as many people as it has served me. Enjoy it and Happy New Year!