Closed davidlb closed 4 years ago
I haven't noticed any issues yet..
For the moment, I just found the switch feature broken. I started to create a branch to manage websocket.
And I guess notifications are broken too (I don't use them)
My notifications work
Now I get it. Its not custom functions is not updating. Did you find any solution?
We need to catch update from the websocket but it needs rewrite of several functions. I think the better will be to create a new branch
Sure use this one: https://github.com/EdddieN/machinon-domoticz_theme/tree/websocket
Getting anywere with this? I dont have any clue about websockets..
Not much, switches are more or less working :/
@EdddieN @DewGew do we really need big switches? It's a ugly hack in JS & CSS just to imitate the icon behaviour and I don't know how to make it working properly with Domoticz beta.
No we don't, which switches? let me know what you mean and we probably can change it to be easier to maintain.
These switches
I don’t use them. But I think then are quite handy🤔 Time ago (moment) also dont update
@DewGew it should have been fixed few hours ago with commit 3bf1663be4f984425c3b927018bc15534e13e3ec
the original design did not have them. That was done becasue back then we did not know how to make the buttons on or faded out. Maybe we could do it now? A bit like Homekit?
I'm done with websocket changes (major refactoring). Can you test the branch? I didn't test the rewrite with previous version of domoticz (without websocket) but it should also work.
Note: for the moment: switch are only displayed for on/off switch.
Merged into beta
Some features (ie switches state) are broken with last Domoticz Beta versions. As Domoticz moved from ajax calls to websocket to get devices status, function $(document).ajaxSuccess(function (event, xhr, settings) in custom.js is not called anymore.
https://github.com/EdddieN/machinon-domoticz_theme/blob/184fc3c43d93c05fd1a23e951a1898090a260457/custom.js#L175-L227