Outils pour utilisateurs

Outils du site


fr:openhab

openhab

fichiers de configurations

https://github.com/openhab/openhab/wiki/Configuring-the-openHAB-runtime

  • openhab_default.cfg
  • ${openhab_home}/configurations
  • ${openhab_home}/configurations/sitemaps
  • /etc/openhab/logback.xml
  • /etc/openhab/configurations
  • /var/lib/openhab

installation

arreter demarrer

  • start
 sudo systemctl start openhab
 
 sudo /etc/init.d/openhab start
  • stop
 sudo systemctl stop openhab
 
 sudo /etc/init.d/openhab stop

bug permissions

  • [ERROR] [.o.core.internal.CoreActivator] - Couldn't create file 'webapps/static/version'. java.io.FileNotFoundException: webapps/static/version (Permission non accordée)
chown -R openhab:openhab /var/lib/openhab/webapps/static
  • - Couldn't create file 'webapps/static/version'. java.io.FileNotFoundException: webapps/static/version (Permission non accordée)

https://github.com/openhab/openhab/issues/1429

log

pour augmenter le niveau de log afin de detecter les problemes de openhab

editer le fichier /etc/openhab/logback.xml et remplacer

<logger name="runtime.busevents" level="INFO" additivity="false">

par

 <logger name="runtime.busevents" level="DEBUG" additivity="false">

modbus binding

# sets refresh interval to Modbus polling service. # Value in milliseconds (optional, defaults to 200) modbus:poll=1000

# host (mandatory) modbus:tcp.slave1.connection=192.168.1.31

# The data typ.pe, can be “coil” “discrete” “holding” “input” modbus:tcp.slave1.type=coil

# the TCP port (optional, defaults to '502') modbus:tcp.slave1.port=1030

# The slave id (optional, defaults to '1') #modbus:tcp.slave1.id=1

# The slave start address (optional, defaults to '0') modbus:tcp.slave1.start=100

# The number of data item to read # (optional, defaults to '0' - but set it to something meaningful) modbus:tcp.slave1.length=5

# Value type, required for combined registers (details: http://www.simplymodbu$ # Can be “bit”, “int8”, “uint8”, “int16”, “uint16”, “int32”, “uint32”, “float3$ # (optional, defaults to 'uint16') modbus:tcp.slave1.valuetype=uint16

/home/freelab/domains/wikii.freelab.cc/public_html/data/pages/fr/openhab.txt · Dernière modification: 2017/09/23 14:02 (modification externe)