Hi everyone, I wanted to share my recent experiences with integrating a Z-Wave door sensor and scripting a zone cleaning routine for my Xiaomi vacuum. Both projects have been quite interesting and taught me a lot about smart home automation!
First, regarding the Z-Wave door sensor: I recently purchased a Neo Coolcam door sensor, which claims to be Z-Wave Plus compatible. However, I initially struggled to add it to my SmartThings setup. After some research and trial and error, I discovered that ensuring the sensor was in discovery mode and using the correct device handler was key. It’s now working seamlessly, and I’m happy with its reliability!
On the Xiaomi vacuum front, I’ve been working on automating zone cleaning with adjustable passes. My initial script used an input_number to set the number of passes, but I ran into configuration errors. After some troubleshooting, I realized the issue was with how I referenced the state in the script. I adjusted the syntax and now it works perfectly! Here’s a snippet of the corrected script for anyone interested:
yaml
input_number:
aspirador_passadas:
name: Passadas
initial: 1
min: 1
max: 3
step: 1
script:
aspirador_zona_sala_inteira:
sequence:
- service: vacuum.send_command
data_template:
entity_id: vacuum.aspirador
command: app_zoned_clean
params: [[22674,21998,26074,31348,{{ states.input_number.aspirador_passadas.state }}]]
This setup allows me to easily adjust the number of cleaning passes through the Home Assistant interface, which is super convenient!
I’d love to hear if anyone else has tips or experiences with Z-Wave sensors or Xiaomi vacuum scripting. Happy automating everyone! ![]()