Good call!
In that case @Mattias use one of the many averaging apps to give you a virtual device mimicking those devices with no decimal. Unless of course you can simply change the output in the driver.
Good call!
In that case @Mattias use one of the many averaging apps to give you a virtual device mimicking those devices with no decimal. Unless of course you can simply change the output in the driver.
I vote for this! I don’t know anything about groovy code, so I hesitate to try. It does seem odd that we get decimal precision for battery life- no way are the battery measurements made by these cheap devices anywhere close to accurate enough to require decimal representation. Anyone with skill- can you post a code patch?
I agree with you, but from a cursory overview of the drivers that I think you are using, could you post the ones just so I am sure, battery is being generated from a voltage reading and then scaling that to the 0-100% scale, which is generating decimal place. But from the code I am seeing, it seems to round as the last step, but my guess is the type is still decimal. I wonder if it would be as simple as casting the rounded output as an int
.
Unfortunately, I do not use any of those drivers so I cannot test it out.
In my case, I see decimal battery percentages reported from my Aqara devices… I’m using Markus’ drivers located here: [Release] Xiaomi / Aqara / Opple Drivers with Presence!
I have a weird issue.
Every time I paste the layout in Smartly, it doubles the size of each tile.
Take, for example, the top left tile (HSM Status) #41. It’s original size was 8x4:
On Smartly’s page it now has a size of 16x8:
I’ve tried this a few times and it happens every time (which is how I got to 8x4 in the first place - in the very beginning I had them as 2x1).
What should I be looking for? Thanks!
Welcome I think I can shed some light on this issue for ya.
This is a known ‘bug’, when using the “autofit” setting in HE.
If you have it set as auto smartly will convert you to “half height mod” and double your grid each time. Make sure you have something in the Column and Row fields before updating smartly (you can remove them after if you want auto fit). Smartly default are shown below.
.Hope that helps clarify what’s happening so it can be avoided.
I remember building in a way to reverse (aka double) the half height mod. Try putting in 911 for column width and row height, then update, copy the JSON back into smartly, save, repeat.
For every time you’ve updated where it has doubled the size of each tile, use 911 and update again.
Let me know how it goes, thank you for reaching out
EDIT: Save a copy of your JSON before doing anything more though.
It worked!!
TY both of you
Hello I come from another thread because I have a problem with smartly, when I modify icons, I put them on the dashboard to the size I want, when I want to modify again and I copy the json when I paste it, the measures of the icons are deconfigured again and it They see me in great shape, I have to do everything again, can you help me?
Can someone help me, every time I change something in the smartly, and I update the .json, it changes the larger, round icons and I have to do it again, the font size and the icon size, the truth is a delay to do this every time
This is a known issue. There was a version that allowed those changes to be omitted, but it no longer function. For now you must making those changes each time. I need to do the same, so I feel your pain.
Sorry @chicoprat I misunderstood. It sounds like it’s just those icon size settings that are getting overridden. Yes what @techmedx said is true, those particular values will need to be changed back to what you want them to be after each update.
Not sure if you are still supporting this mod but with the lastest versions of hubitat firmware 2.3.3.134 the save button no longer seems to work on the injection driver. It says it worked but when you exit by clicking paw or reload the changes weren’t saved.
Same issue for me. It looks like everything is fine, but when you exit out of Smartly (click the paw), it didn’t actually save.
Just wanted to let everyone know this is being looked into. As of now I can say running version 2.3.2.141 smartly drag and drop still works, but soon after that it breaks (not 100% sure exactly which version as of yet)
I want to take a minute to thank everyone that has supported smartly over the years. When my friend @spelcheck started this project he had one simple vision in mind.
“Make it (HE) prettier and more ‘marketable’, hubitat sales will increase, hubitat will hire more developers that fix all the things, smartly ends up being unnecessary.”
While this project may have been…, misdirected, as a personal friend to the original dev I wanted to post an “un-official” end to this chapter of smartly. The official announcement is linked here
IMHO smartly did accomplish @spelcheck’s dream of making HE dashboards prettier, and that functionality still remains. There are no plans to remove the smartly transmogrifier website (credit @danabw ), or any of the hosted icons and such that make its main objective accomplishable.
However in closing, there will be no future development, or patches to smartly in the foreseeable future. I’ve never claimed to be a dev; just a friend, and faithful minion to a very talented one, that unfortunately, is no longer directly available. If there is a dev willing and able to continue this project, my simple services, and connections are always available.
again, Thanks for supporting smartly!!
To mirror a post I just made on the HE Community…:
I’d also like to extend my thanks to all those responsible for the Smartly project. This kick-started a lot of my interest in modifying dashboards and producing tools to make that easier.
With the recent issue reported with the Drag and Drop feature not working post platform version 2.3.3.x, I have modified the Javascript file for the Drag and Drop feature of Smartly, which will now copy the updated layout JSON to the clipboard when you click the Save (disk) icon. This text can then be manually pasted into the Layout section of the Advanced dashboard Settings.
I have spoken with @markus and he was happy for me to maintain this feature, suggesting I setup my own copy under a separate repository, which I have done. I still need to do some more housekeeping like bringing the device driver across and setting it up for HPM use, so for now you will need to manually download the file to your PC from the link below, then upload it to your HE hub via File Manager. You can then open / refresh your dashboard to start using the updated process.
@sburke781 you might think about using a derivative name that doesn’t include the word smartly. When I search for smartly on the HE forum site, it doesn’t bring up anything relevant- they’re maintaining the blacklist against the original author. A search on smartly inject does return the recent thread about it not working, so I guess their filter isn’t absolute. Still, if you mangage to get it to a state that will work well for people, the name smartly might prevent many of them from finding it.
Thanks for the tip @epw, I wasn’t aware of that issue in finding the fix. I’m feeling like I will take what are now informed tentative steps into this space. The protagonist in me would say I will call it Oh-La Labs Core Drag and Drop… But the sheepish ever-accommodating nature in me would say I will temporarily fly under the radar and work out a quiet and diplomatic way of making people aware, without upsetting the neighbours, that they can still adjust the size and position of their tiles… I like to think of it is akin to finding a nice cafe or bar… It take’s word of mouth rather than an “in-your-face” advertisement of it’s existence… Plus I haven’t actually finished setting up my repository… So don’t want to sell it to the world just yet…
EDIT: It wouldn’t appear that is not entirely the case, to be fair to the HE team. I was able to search for Smartly and find the recent topic that was created. I needed to adjust the sort order, but it then came up in the results. Hard to pin any negative motives on those who manage the Community I would suggest…