Replies: 2 comments 5 replies
-
Hi, First, there are no specific plans on that. Currently the Second, if I understand your ideas well, you propose to use some kind of active record pattern - to implement some dynamic behaviour on the control classes. While this may look nice at first sight, there are couple problems at second sight - you named some of them. My experience (coming from other API client projects) rather support the idea of having the dynamic logic separate. Which is actually what is represented now by sendControl* methods and also LoxoneEventListener. To sum up:
|
Beta Was this translation helpful? Give feedback.
-
I was looking further to start implement this, but i was wondering why the states map in the Control class contains LoxoneUUIDs as value and not a single UUID, are there controls that use this? If i look at the structure file of my miniserver i don't see any state that contains multiple UUIDs. But perhaps there are controls that can have multiple UUIDs for one state key? I don't directly see the fact that multiple UUIDs are possible mentioned in the documentation. |
Beta Was this translation helpful? Give feedback.
-
Hi,
i was looking further into the library and i have a few questions.
I want to zoom in on the SwitchControl, but a lot of other controls will show simular behaviour i guess.
The SwitchControl object now contains the structure data of the control, but shouldn't it also contain the current state of the control in the miniserver ('On' or 'Off) and also expose the supported commands (switch 'On' or 'Off' or 'Toggle', ...)
What is the idea for further development of the library? If the SwitchControl object should know it's state we should get the current state from the miniserver (lazy loaded maybe ??) and also be able to trigger commands on the control itself? The state can be retrieved by an active state query (not entirely clear how to do that) and should also get updates when an update is send through the websocket for the specific control.
This leads to the problem the SwitchControl needs to have access to the Loxone class to be able to send commands (or at least the open websocket).
Is this the way forward, or do you guys have other ideas about it?
I can try to focus on the SwitchControl and try to implement what I have in mind.
Beta Was this translation helpful? Give feedback.
All reactions