HI, I have been using OH2 for a while (around 4 weeks), it works awesome as it link up all difference brand hardware works together I believe I have been get no issue on MQTT and few 2.00 binding build support hardware, it makes setup real quick and easy,
and I got stuck with rules, persistence especially I don’t have clear concept on exec,If I am not getting wrong, when binding turns to 2.0 means runs in OH2 way,
after I dig a long while at here. I sucessfully get exec works in two way, one in rules and or one in OH2 way items <> things <> site map, I choice to run in new way, have been sucessfully get out bound to the device take order, but I still not able to get it works at in bound (retrieve info), I saw after forum looks all go to rules, how should I work with it? (or suggest)
second, the console keep time out when no response with limit time, how can I modify it to make it won’t disconnect me?
I always get some strange Warn when I start using,
00:32:36.791 [WARN ] [e.sshd.server.channel.ChannelSession] - Unknown pty opcode value: 42
how to trace it?
sometimes I got error looks relate to home kit
19:45:50.336 [ERROR] [lfe.hap.impl.http.impl.BinaryHandler] - Exception in binary handler
java.io.IOException: Connection timed out
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[:1.8.0_121]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[:1.8.0_121]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[:1.8.0_121]
at sun.nio.ch.IOUtil.read(IOUtil.java:192)[:1.8.0_121]
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)[:1.8.0_121]
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)[190:org.openhab.io.homekit:2.0.0]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[190:org.openhab.io.homekit:2.0.0]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[190:org.openhab.io.homekit:2.0.0]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[190:org.openhab.io.homekit:2.0.0]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
19:45:50.351 [ERROR] [.hap.impl.http.impl.AccessoryHandler] - Exception caught in web handler
java.io.IOException: Connection timed out
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[:1.8.0_121]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[:1.8.0_121]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[:1.8.0_121]
at sun.nio.ch.IOUtil.read(IOUtil.java:192)[:1.8.0_121]
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)[:1.8.0_121]
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)[190:org.openhab.io.homekit:2.0.0]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[190:org.openhab.io.homekit:2.0.0]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[190:org.openhab.io.homekit:2.0.0]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[190:org.openhab.io.homekit:2.0.0]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[190:org.openhab.io.homekit:2.0.0]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Third) I need to run a python script when openhabian start up, as it can’t run duplicate, and rc.local is not a choice as itside said every ssh login will run this once, so where should I active the script when system startup? and were should I add line to kill this process when shut down?
Final, I need a script but as I don’t know nothing about writing any language,
I try goolge around and modify as good as I can but it still not work
Please give a hand, once I change the value in UI, with number 10-99 is fine, but issue come to 0-9, as I need number to be two digits eg: 01-09
rule "Sharp Volume value correction"
when
Item SharpTVVolume changed
then
if (SharpTVVolume.state < 10) {
var Number T = SharpTVVolume.state as DecimalType
String.format("%02d",T)
}
postUpdate(SharpTVVolume, T)
end
please help me and opeimize it, I got many more to ask but I need to sleep now, so please take a look and help me out.
thanks and regards.