Xiaomi Air Purifier - problem with dzVents  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
MajkiIT
Posts: 3
Joined: Sunday 05 April 2020 9:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Xiaomi Air Purifier - problem with dzVents

Post by MajkiIT »

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?
User avatar
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

Post by waaren »

MajkiIT wrote: Monday 13 April 2020 14:43 ....but as I add the switch and dzVents script nothing happens. In the logs
I'm doing something wrong? Maybe the script is bad?
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
MajkiIT
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]

Post by MajkiIT »

Thanks, now I see that command is not execute on OS.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest