I’ve been diving into the world of shell commands to enhance my Netatmo Presence setup, and it’s been a fascinating journey!
I have two Netatmo cameras on my terrace, and I wanted to streamline the process of enabling/disabling detection mode, controlling lights, and adjusting the dimmer. I stumbled upon a PHP API that allows me to send commands to my cameras, and I’ve created a script named presence.php that accepts three attributes: entity, action, and percent. Here’s how I’ve set it up in my configuration file:
shell
shell_command: netatmo_presence_terrasse: ‘php /config/shell_commands/presence.php {{entity}} {{action}} {{percent}}’
Testing the script via the developer tools has been successful, but now I’m looking to create a user-friendly interface. I want to add a light switch, a toggle for detection mode, and a slider for dimming. The challenge is figuring out how to define these as lights or switches within my setup. Any advice or tips would be greatly appreciated! ![]()
On another note, I’ve also been exploring Zigbee devices and their integration with Home Assistant. I’ve come across both Zigbee2MQTT and ZHA, and I’m curious about the pros and cons of each. From what I’ve read, Zigbee2MQTT seems more versatile, but I’m not sure if I’m missing something. Additionally, I’m trying to decide which firmware to use for my Zigbee hardware—coordinator or router. Any recommendations or gotchas to watch out for would be invaluable! ![]()
Overall, it’s been a rewarding experience experimenting with these tools, and I’m excited to see how I can further optimize my setup. Thanks in advance for your insights and suggestions! ![]()