Cannot post event as EventPublisher is missing

Hi,

I added a DynamicStateDescription provider to the binding based on BaseDynamicStateDescriptionProvider (copied from one of @Kai 's bindings). It works, I see the list, all good. However, when checking openhab.log I see various warnings

Cannot post event as EventPublisher is missing

Current implementation: openhab-addons/ShellyStateDescriptionProvider.java at shelly_snapshot3.3 · markus7017/openhab-addons · GitHub

which gets registered using

    @Override
    public Collection<Class<? extends ThingHandlerService>> getServices() {
        return Set.of(ShellyStateDescriptionProvider.class);
    }

Is there a part of the implementation missing?

@fwolter @Lolodomo any idea?

You did mot take a good example.
Look at yhis one for example:

1 Like

works, thanks

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.