Hi
I have a problem with register_service
and call_service
.
Registering a service in the default namespace, make call_service
to fail with error : Code: 400, error: 400: Bad Request.
But, registering the same service in custom namespace works.
This following code fails
def initialize(self): self.register_service("test/message", self.test_message) self.call_service("test/message") def test_message(self, plugin, domain, service, data): self.log("Hello from test_message")
log line from appdaemon
WARNING HASS: Code: 400, error: 400: Bad Request
lThis following code works
def initialize(self): self.set_namespace("custom_ns") self.register_service("test/message", self.test_message) self.call_service("test/message", namespace="custom_ns") def test_message(self, plugin, domain, service, data): self.log("Hello from test_message")
log line from appdaemon
INFO volumio_player: Hello from test_message
The problem seems to have appeared suddenly, everything was working well until today.
Any idea ?