General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Sep 22, 2017 10:18 pm

All times are UTC




Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7
Author Message
PostPosted: Thu Mar 16, 2017 1:55 pm 
Offline

Joined: Sun Feb 05, 2017 12:55 pm
Posts: 21
Quote:
stty -F /dev/ttyUSB0 9600


I did this one already when I figured out that I did not have the cu package...
It did not make any difference.

I will try to install the cu package tonight and see if it can fix my problems.


Top
 Profile  
 
PostPosted: Thu Mar 16, 2017 7:03 pm 
Offline

Joined: Sun Feb 05, 2017 12:55 pm
Posts: 21
barmalej2 wrote:
Code:
slapt-get -u
slapt-get -i uucp


One more thing. Try to set baudrate on terminal:
Code:
stty -F /dev/ttyUSB0 9600

And recheck domoticz.


I could install the package just find and when running:

Code:
cu -l /dev/ttyUSB0 -s 9600 --parity=even


I get an output which looks just fine:

Code:
/ISk5\2ME382-1004

0-0:96.1.1(4B414C37303035313338393938333133)
1-0:1.8.1(08234.559*kWh)
1-0:1.8.2(03543.334*kWh)
1-0:2.8.1(02018.359*kWh)
1-0:2.8.2(04940.602*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(0000.46*kW)
1-0:2.7.0(0000.00*kW)
0-0:17.0.0(0999.00*kW)
0-0:96.3.10(1)
0-0:96.13.1()
0-0:96.13.0()
0-1:24.1.0(3)
0-1:96.1.0(3238303131303031333036303636343133)
0-1:24.3.0(170316190000)(00)(60)(1)(0-1:24.2.1)(m3)
(05479.482)
0-1:24.4.0(1)
!


However when running the command that is said to be the fix I get an error:

Code:
cu -l /dev/ttyUSB0 -s 9600 --parity=even|bash


Gives:

: No such file or directory004
bash: line 2: $'\r': command not found
bash: line 3: syntax error near unexpected token `4B414C37303035313338393938333133'
' bash: line 3: `0-0:96.1.1(4B414C37303035313338393938333133)

It doesn't say anything to me. Do you have any suggestions?


Top
 Profile  
 
PostPosted: Thu Mar 16, 2017 8:50 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2298
lucaswiersma wrote:
However when running the command that is said to be the fix I get an error:

Code:
cu -l /dev/ttyUSB0 -s 9600 --parity=even|bash

This command makes no senses to me and is totally illogic. It passes all output from
Quote:
cu -l /dev/ttyUSB0 -s 9600 --parity=even
to bash command line, which only understands bash syntax, thus gives errors of executing code.
The obvious thing is that data is incoming via /dev/ttyUSB0, but domoticz is not getting (fetching) it. Why, I have no clue. Without having device to test I can only guess that some of others required devices nodes are missing or it is old kernel issue or something else.
It would be great, if you post this problem on domoticz forum. Maybe developer(s) or advanced users will be able to help to find out, where the key-reason is.


Top
 Profile  
 
PostPosted: Mon Sep 04, 2017 9:03 pm 
Offline

Joined: Sun Feb 26, 2017 10:09 pm
Posts: 5
I have some xiaomi led bulbs and I want to try with domoticz.
I have nas 542, managed to install sucessfully domoticz through slapt-get, no missing libraries, but when i want to start i got this error:
any ideas what is wrong:


root@NAS542:~# sh /ffp/start/domoticz.sh start
Starting /ffp/opt/domoticz/domoticz -www 8181 -sslwww 8443 -sslcert /ffp/opt/domoticz/server_cert.pem -log /ffp/var/log/domoticz.log -loglevel 1 -daemon
2017-09-04 20:49:13.427 Domoticz V3.3.5877 (c)2012-2016 GizMoCuz
2017-09-04 20:49:13.433 Build Hash: b97777b, Date: 2016-11-09 11:33:42
2017-09-04 20:49:13.435 Startup Path: /i-data/4ad20f06/.PKG/ffp/ffproot/ffp/opt/domoticz/
domoticz: Domoticz is starting up....
/ffp/opt/domoticz/domoticz: can't resolve symbol 'SSL_COMP_free_compression_methods'

Adam


Top
 Profile  
 
PostPosted: Tue Sep 05, 2017 5:10 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2298
You need to upgrade your ffp base packages including openssl first:
Code:
slapt-get -u
slapt-get  --upgrade

If you are using ffp sshd, then restart of it is required after upgrade:
Code:
sh /ffp/start/sshd.sh restart


Top
 Profile  
 
PostPosted: Tue Sep 05, 2017 7:23 pm 
Offline

Joined: Sun Feb 26, 2017 10:09 pm
Posts: 5
Fixed!
Thanks!
You are the guy!

Adam


Top
 Profile  
 
PostPosted: Wed Sep 06, 2017 5:01 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2298
You are welcome.
Does xiaomi led bulbs works with Domoticz?


Top
 Profile  
 
PostPosted: Thu Sep 21, 2017 9:55 am 
Offline

Joined: Sun Feb 26, 2017 10:09 pm
Posts: 5
I have 3 type of Xiaomi Led lights:
1) https://www.gearbest.com/smart-lighting/pp_361555.html I have only white.
You need to enable developer mode in yeelight app add yeelight led in domoticz and equipment is found automatically - so yes it works.
2) https://www.gearbest.com/flush-ceiling- ... 33589.html Philips ceiling lamp. I do not think it is yet supported by domoticz, also not able to put it in developers mode easily.
https://github.com/aholstenson/miio/issues/57 <- I can see that some works to understand the protocol has been done
3) https://www.gearbest.com/smart-lighting/pp_644095.html / not supported by yeelight app, could not turn on developer mode, do not know if it is supported by domoticz.

Another questions:
Is it possible to update domoticz on zyxek nas:
Current version: 3.3.5877
I get communicate about update:
A new version of Domoticz is Available!...
Version: 8153, Latest Changes: Click Here

Another comment:
Do not add yeelight led in domoticz in hardware tab twice. It will ruin database and you will have to erase everything!
Make backup of you DB frequently :-)
Another comment:
Domoticz is not updating status, when lamp was disabled in other app.
Adam


Top
 Profile  
 
PostPosted: Thu Sep 21, 2017 4:53 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2298
greenwitch wrote:
Is it possible to update domoticz on zyxek nas?

At the moment my box is on half way of updating ffp toolchain. So can't help you with update, but you can do it yourself.

Code:
slapt-get -i ffp-buildtools
Code:
mkdir -p /mnt/HD_a2/ffp0.7arm/src/scripts
cd /mnt/HD_a2/ffp0.7arm/src/scripts
Code:
wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/reposcripts/gendeps -O /ffp/bin/gendeps
chmod 755 /ffp/bin/gendeps
wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/build/src/domoticz.sh
chmod 755 domoticz.sh
Edit domoticz.sh script:change to current version-3.8153 line VERSION="3.5877", then run:
Code:
nohup ./domoticz.sh >> domoticz.log 2>&1 &


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 91 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group