I’m practising how to write binding but I’m stuck at StateChangeListener.
I’vd done binding with simple switch from create_openhab_binding_skeleton.
Next I added new class RafalDevEvent in org.openhab.binding.rafaldev.internal :

public class RafalDevEvent implements StateChangeListener {

    private Logger logger = LoggerFactory.getLogger(RafalDevHandler.class);

    public void stateChanged(Item item, State oldState, State newState) {
        logger.debug("==================>>>>     stateChanged");

    public void stateUpdated(Item item, State state) {
        logger.debug("==================>>>>     stateUpdated");



I want to have listener when I use any item but It isn’t working. Any one know what im doing wrong ?