Corrective in domoticzupdate.sh.
Need to add port in command.
#!/bin/bash
cd /root/xiaomi/humidifier
while true; do
# Main Bedroom Humidifier
# Get the data
data=$(node humidifier.js 192.168.0.95 status2)
# Sort it
temperature=$(echo "$data" | jq '.[0]' | sed 's/.\{2\}/&./g')
humidity=$(echo ...
Search found 18 matches
- Friday 15 September 2017 9:50
- Forum: Others
- Topic: Xiaomi Humidifier
- Replies: 29
- Views: 12709
- Thursday 14 September 2017 19:37
- Forum: Python
- Topic: Python Plugin: Broadlink RM2 V3
- Replies: 310
- Views: 77863
Re: Python Plugin: Broadlink RM2 V3
And i get new errors:
2017-09-14 20:36:00.592 Error: BroadlinkRM3 hardware (5) thread seems to have ended unexpectedly
2017-09-14 20:36:02.799 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/local/lib/python35.zip:/usr/local/lib ...
2017-09-14 20:36:00.592 Error: BroadlinkRM3 hardware (5) thread seems to have ended unexpectedly
2017-09-14 20:36:02.799 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/local/lib/python35.zip:/usr/local/lib ...
- Thursday 14 September 2017 16:46
- Forum: Python
- Topic: Python Plugin: Broadlink RM2 V3
- Replies: 310
- Views: 77863
Re: Python Plugin: Broadlink RM2 V3
Dear forum,
I am trying to install Broadlink Rm3, but something going wrong.
I understand that there are a lot of variables in installing Broadlink, and it will be hard for you to help me. But I will try to explain.
System:
Raspbertty Pi 2
Domoticz V3.8394 (c)2012-2017 GizMoCuz
Build Hash ...
- Thursday 14 September 2017 16:10
- Forum: Python
- Topic: Python Plugin: Broadlink RM2 V3
- Replies: 310
- Views: 77863
Re: Python Plugin: Broadlink RM2 V3
Dear forum,
I am trying to install Broadlink Rm3, but something going wrong.
I understand that there are a lot of variables in installing Broadlink, and it will be hard for you to help me. But I will try to explain.
System:
Raspberry Pi 2
Domoticz V3.8394 (c)2012-2017 GizMoCuz
Build Hash ...
I am trying to install Broadlink Rm3, but something going wrong.
I understand that there are a lot of variables in installing Broadlink, and it will be hard for you to help me. But I will try to explain.
System:
Raspberry Pi 2
Domoticz V3.8394 (c)2012-2017 GizMoCuz
Build Hash ...
- Tuesday 12 September 2017 11:07
- Forum: Zigbee
- Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
- Replies: 2452
- Views: 556643
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Guys, just 2 questions:
1. Am i right that we have an update with Aqara water leak detector? https://github.com/domoticz/domoticz/pu ... 178515e9d2
2. How to update Domoticz to install this water leak detector?
Thank you!
1. Am i right that we have an update with Aqara water leak detector? https://github.com/domoticz/domoticz/pu ... 178515e9d2
2. How to update Domoticz to install this water leak detector?
Thank you!
- Monday 11 September 2017 15:50
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
Ah interesting, thanks for letting us know! I think the full paths to both node and js file would be sufficient? Or is it really necessary to use sh?
Necessary:
- full path
- one '/dev/null' at the end of LUA-code.
I rewrite my code and now it works from LUA editor:
commandArray ...
- Monday 11 September 2017 15:47
- Forum: Others
- Topic: Xiaomi Humidifier
- Replies: 29
- Views: 12709
Re: Xiaomi Humidifier
One more update!
I checked code and now it works from Events (LUA).
1. My variant of humidifiercontrol.sh
I placed it on /home/pi/domoticz/scripts/humidifiercontrol.sh
#!/bin/bash
if [ “$2” == “on” ]; then
/home/pi/.nvm/versions/node/v6.0.0/bin/node /home/pi/Xiaomi/humidifier.js $1 mode $3 ...
I checked code and now it works from Events (LUA).
1. My variant of humidifiercontrol.sh
I placed it on /home/pi/domoticz/scripts/humidifiercontrol.sh
#!/bin/bash
if [ “$2” == “on” ]; then
/home/pi/.nvm/versions/node/v6.0.0/bin/node /home/pi/Xiaomi/humidifier.js $1 mode $3 ...
- Monday 11 September 2017 12:23
- Forum: Others
- Topic: Xiaomi Humidifier
- Replies: 29
- Views: 12709
Re: Xiaomi Humidifier
Maybe it will help to someone like me.
I did step-by-step p.1-4.
Create humidifier.js with code shown above by path "/home/pi/Xiaomi"
After that you can try make commands and check that your Xiaomi Humidifier working from command line:
node humidifier.js 192.168.0.95 power off
node humidifier.js ...
I did step-by-step p.1-4.
Create humidifier.js with code shown above by path "/home/pi/Xiaomi"
After that you can try make commands and check that your Xiaomi Humidifier working from command line:
node humidifier.js 192.168.0.95 power off
node humidifier.js ...
- Monday 11 September 2017 11:53
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
Not sure why nothing happens, while executed manually it works fine.. Maybe you could try "script:///bin/bash -x /home/pi/domoticz/scripts/humidifiercontrol.sh 192.168.1.40 on silent" and start Domoticz in a seperate terminal (just with ./domoticz instead of start-up script) to get a trace of ...
- Monday 11 September 2017 9:18
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
You could try something simple like this, it should print the current date in /tmp/test.log:
#!/bin/bash
echo $(date) > /tmp/test.log
You know what? Your code is working... I don't know why, but I created dummy switch and made "on action" script
Script:///home/pi/Xiaomi/test.sh
with your ...
- Sunday 10 September 2017 10:54
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
If in doubt, I would move the current domoticz installation folder and conpletely re-install, because you shouldn't get that dzVents.lua not found message (the other error doesn't seem relevant in this matter). Just copy over domoticz.db afterwards to get your data back.
Thanks, i fixed ...
- Saturday 09 September 2017 14:44
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
You could try using those actions instead, but that doesn't explain why it's not working with Lua..
When using script:// you should set it like this: script:///bin/bash etc (triple / and full path to bash). It might work for you, because it calls the scripts without Lua involved.
If in doubt, I ...
- Saturday 09 September 2017 14:16
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
What about /bin/bash? And the cannot open dzVents.lua error is suspicious, something seems wrong with your installation. Could try disabling dzVents under settings -> other, restart domoticz and see if at least that error message is gone?
1. Disabling dzVents -> Just have 1 error:
2017-09-09 ...
- Saturday 09 September 2017 13:27
- Forum: Others
- Topic: Xiaomi Humidifier
- Replies: 29
- Views: 12709
Re: Xiaomi Humidifier
I have the same error.SimyriK wrote: Friday 25 August 2017 6:29 Hi. A lot of messages like "Error: EventSystem: Lua script /home/user/domoticz/scripts/lua/script_device_BedroomHumidifier.lua did not return a commandArray". Does anyone know how to solve?
Did you solve this problem?
- Saturday 09 September 2017 13:22
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
It seems that dzVents log line is printed instead of Lua, which sometimes seem to occur for yet unknown reason (it's harmless). So the example/test script is working, it just tries to match on all device changes, which results in those nil value messages.
Try to add the full path to screen in os ...
- Saturday 09 September 2017 12:16
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
How did you implement this LUA script? When you used the internal editor, did you change the Event dropdown from All to Devices?
... else what did you name the script and where is it located?
Jos
I tried both ways:
1. I used internal editor and i changed from "All" to "Device". Checked many ...
- Saturday 09 September 2017 11:35
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Re: Lua script did not return a commandArray
puts some print commands to debug before you test values
val = devicechanged['Humidifier']
print ("Humidifier Value is " .. val)
check logs
Suspect you may need to test on level values
Ok. I put this strings instead of my "os.execute" code.
2017-09-09 12:29:58.876 dzVents: Humidifier ...
- Saturday 09 September 2017 10:59
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7725
Lua script did not return a commandArray
SOLVED
What I have:
Raspberry Pi 2
Linux raspberrypi 4.9.24-v7+
GNU bash, version 4.3.30(1)-release
Node v6.0.0
Domoticz V3.8153
Xiaomi Humidifier
In directories on Raspberry Pi:
I did step-by-step from this topic https://www.domoticz.com/forum/viewtopic.php?f=56&t=17498 about Xiaomi ...
What I have:
Raspberry Pi 2
Linux raspberrypi 4.9.24-v7+
GNU bash, version 4.3.30(1)-release
Node v6.0.0
Domoticz V3.8153
Xiaomi Humidifier
In directories on Raspberry Pi:
I did step-by-step from this topic https://www.domoticz.com/forum/viewtopic.php?f=56&t=17498 about Xiaomi ...