Raspian Jessie / GPIO input

hello,

I’m running raspian, openHab 2.4.0, experiencing the same problem. To get input Wiring Pi pin 16 (BCM 15) working reliably after a reboot, I added the line:

# BCM_GPIO pin
gpio -g mode 15 down

# Wiring Pi pin
# gpio mode 16 down

to the file

/etc/rc.local

I stumbled across this solution after running a python example. After running the python example, I noticed that openHab started working on the same input pin. From this page: https://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/

To get round this, we use a pull up or a pull down resistor. In this way, the default value of the input can be set. It is possible to have pull up/down resistors in hardware and using software. In hardware, a 10K resistor between the input channel and 3.3V (pull-up) or 0V (pull-down) is commonly used. The RPi.GPIO module allows you to configure the Broadcom SOC to do this in software:

GPIO.setup(channel, GPIO.IN, pull_up_down=GPIO.PUD_UP)
  # or
GPIO.setup(channel, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

Ideally it would have been great if this was allowed to be configured in openHab *.items file