I found a page with such a plugin https://domoticzfaq.ru/xiaomi-air-purif ... -domoticz/. When it extracts commands from SSH, everything works fine, but as I add the switch and dzVents script nothing happens. In the logs I see:
2020-04-13 14: 39: 50.571 (Purifier) Light / Switch (Purifier button)
2020-04-13 14: 39: 50.562 Status: User: Admin initiated a switch command (288 / Oczyszczacz button / Set Level)
2020-04-13 14: 39: 50.826 Status: dzVents: Info: Handling events for: "Button purifier", value: "Auto"
2020-04-13 14: 39: 50.826 Status: dzVents: Info: ------ Start internal script: test: Device: "Button cleaner (Button cleaner)", Index: 288
2020-04-13 14: 39: 51.172 Status: dzVents: Info: ------ Finished test
I'm doing something wrong? Maybe the script is bad?
Xiaomi Air Purifier - problem with dzVents [Solved]
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Xiaomi Air Purifier - problem with dzVents
First step to analyze would be to switch on DEBUG_LOG for the script and catch the result of the os execute. Or better move to io.popen.
With io.popen it is much easier to grab te result of the os command. If you share the script as you have it now, I can help converting it to use io.popen
I am not stating that it will solve your issue but at least you might get some more information where it goes wrong.

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 3
- Joined: Sunday 05 April 2020 9:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Air Purifier - problem with dzVents [Solved]
Thanks, now I see that command is not execute on OS.
Who is online
Users browsing this forum: No registered users and 1 guest