Replies: 1 comment
-
|
This looks like a bug. This is a feature not tested very well. I will try to fix it for the next release. Sorry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I want to avoid passing all the "capabilities" to my MQTT broker. According to the documentation this requires
"topic_filter_regex": "^(?!.capabilities).$"
in the config file. However, if I enter this into the config file, I get an error during start of the service (which, nevertheless is running thereafter)
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: File "/root/.local/share/pipx/venvs/carconnectivity-plugin-mqtt/lib/python3.12/site-packages/carconnectivity/attributes.py", line 496, in enabled
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: self.notify(Observable.ObserverEvent.ENABLED)
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: File "/root/.local/share/pipx/venvs/carconnectivity-plugin-mqtt/lib/python3.12/site-packages/carconnectivity/observable.py", line 148, in notify
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: observer(element=self, flags=flags)
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: File "/root/.local/share/pipx/venvs/carconnectivity-plugin-mqtt/lib/python3.12/site-packages/carconnectivity_plugins/mqtt/mqtt_client.py", line 404, in _>
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: self._add_topic(topic=topic, with_filter=True, subscribe=False, writeable=False)
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: File "/root/.local/share/pipx/venvs/carconnectivity-plugin-mqtt/lib/python3.12/site-packages/carconnectivity_plugins/mqtt/mqtt_client.py", line 254, in _>
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: if not self.topic_filter_regex.match(adjusted_topic):
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dez 28 13:17:57 BeeTwo carconnectivity-mqtt[86417]: AttributeError: 'str' object has no attribute 'match'
and the MQTT plugin does not listen to any topic.
Regards
pah
Beta Was this translation helpful? Give feedback.
All reactions