This commit is contained in:
John Lancaster
2025-05-26 16:34:55 -05:00
parent 4aa8a3a4a9
commit c5cb766c73
16 changed files with 201 additions and 145 deletions

View File

@@ -0,0 +1,14 @@
from typing import Any
from appdaemon.adapi import ADAPI
class HelloWorld(ADAPI):
def initialize(self):
self.log(f'{self.__class__.__name__} Initialized')
self.register_service("my_domain/my_exciting_service", self.my_exciting_cb)
def my_exciting_cb(self, *args: str, my_arg: int = 0, **kwargs: Any) -> Any:
namespace, domain, service = args
self.log(f"Service {domain}/{service} in the {namespace} namepsace called with {kwargs}")
return 999 + my_arg