Advertisement
nodeco

openhab.cfg

Dec 11th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. # This is the default configuration file, which comes with every openHAB distribution.
  2. # You should do a copy of it with the name 'openhab.cfg' and configure your personal
  3. # settings in there. This way you can be sure that they are not overwritten, if you
  4. # update openHAB one day.
  5.  
  6.  
  7. #######################################################################################
  8. ##### General configurations #####
  9. #######################################################################################
  10.  
  11. # Configuration folders (must exist as a subdirectory of "configurations"; the value
  12. # tells the number of seconds for the next scan of the directory for changes. A
  13. # value of -1 deactivates the scan).
  14. # A comma separated list can follow after the refresh value. This list defines a filter
  15. # for valid file extensions for the models.
  16. folder:items=10,items
  17. folder:sitemaps=10,sitemap
  18. folder:rules=10,rules
  19. folder:scripts=10,script
  20. folder:persistence=10,persist
  21.  
  22. # configures the security options. The following values are valid:
  23. # ON = security is switched on generally
  24. # OFF = security is switched off generally
  25. # EXTERNAL = security is switched on for external requests
  26. # (e.g. originating from the Internet) only
  27. # (optional, defaults to 'OFF')
  28. #security:option=
  29.  
  30. # the Netmask to define a range of internal IP-Addresses which doesn't require
  31. # authorization (optional, defaults to '192.168.1.0/24')
  32. #security:netmask=
  33.  
  34. # The name of the default persistence service to use
  35. persistence:default=rrd4j
  36.  
  37. # The refresh interval for the main configuration file. A value of '-1'
  38. # deactivates the scan (optional, defaults to '-1' hence scanning is deactivated)
  39. #mainconfig:refresh=
  40.  
  41. # Bind service discovery to specific hostname or IP address
  42. #servicediscovery:bind_address=127.0.0.1
  43.  
  44.  
  45.  
  46. ############################### Modbus Binding ########################################
  47.  
  48.  
  49. # read nilan connection
  50. modbus:poll=2000
  51.  
  52. modbus:serial.nilan1.connection=COM3:19200:8:even:1:rtu
  53. modbus:serial.nilan1.id=30
  54. modbus:serial.nilan1.start=200
  55. modbus:serial.nilan1.length=16
  56. modbus:serial.nilan1.type=input
  57. modbus:serial.nilan1.valuetype=int16
  58.  
  59.  
  60. # write out nilan connection
  61.  
  62. modbus:writemultipleregisters=true
  63. modbus:serial.nilan2.connection=COM3:19200:8:even:1:rtu
  64. modbus:serial.nilan2.id=30
  65. modbus:serial.nilan2.start=1001
  66. modbus:serial.nilan2.length=4
  67. modbus:serial.nilan2.type=holding
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement