[smartly] bug report and support thread

Unless you have a device on the dash more than once. I think I have some multi sensors on more than once like temp and humidity as separate tiles.

If that device (417) is your smartly injector, yes you only want one of those.

I should have used this in my example.
“templateExtra”: “javascript”
And I am assuming since you told me to search for “javascript” then it is the smartly injector tile.

I will remove the (2) extra’s. :wink:
Should there be a error message when someone attempts to insert more than one smartly injector tile?

1 Like

Technically it’s not an error, just not needed. It won’t create “problems”, but it’s unnecessary. Not sure we need extra dev just to tell people not to. It’s your hub/dashboard put as many as you like :wink:

Hi folks;

Trying hard here to use the temp/humidity gradient feature but not being able:

  • if I mark the checkbox of “global value-based temperature tile color.” or the humidity, when I click save those options are un-checked
  • if I try to use directly on the tile, where I put in there “0,5,10,15,20,25,30,35” since I am in a tropical country and with Celcius scale I get the options saved but on the tiles I only see purple regardeless the temperature.

Am I doing something wrong?

this is a known issue, but the settings work, the boxes just don’t stay checked.

Do you have the smartly inject device installed on your hub and placed on that dashboard?

1 Like

I don’t. Is it needed? Also for humidity?

So the settings we mark, even not maintaining marked, is still valid?

What are the ranges used on that one?

Yes, any “dynamic” changes are done by the smartly injector. Once added, you’ll see the tiles are purple when the dash is 1st loaded then the color fills in once smartly inject works it’s magic. Without it they will not function.

Correct

Roughly based off my OG charts.

C

F

EDIT oh wait you mean humidity? Not sure if I have a chart for that, let me check.]

No sorry doesn’t look like I made a humidity color chart. I should. If you want you can add a dozen or so virtual sensors and set them all to 10 percent increments (or less) then put them all on a dash with smartly injector and post the results.

1 Like

Indeed. As you said, like magic.
Thanks for the support.

1 Like

So, I have had the tile for smartly on a few dashboards on everything working correct. I went through just now and created new dashboards manually for the rooms in my house and added the tile for smartly, also manually. None of these new dashboards are showing the paw print. The previous instances of smartly are functioning as expected. Nothing happening in the logs besides this,

“Now: 1621840085425, JS length: 1015, Maximum is 1024,”

Be sure you haven’t mistakenly chosen the ‘javascriptLength’ option.

If the tile remains on the screen with 1015 showing, the wrong option is set. Change it to ‘javascript’ If that’s not it LMK and we’ll dig deeper (I did just create a fresh dash to test. It seems to be working as expected)

and Welcome to OLL!

3 Likes

ok…
Is it possible that Smartly and ‘other dashboard editor’ ‘screw’ each other up? (sorry for the word ‘screw’, I can’t seem to find a better word (my english is not thet good)).

  • I Like “DashEd” it’s great for layouts of the house and fit a switch between lines of a ‘svg’ background.
    But the freedom of moving things every pixel is a nightmare for a dashboard with only buttons.
  • I Like “smartly” it’s great for more button-based dashboard and with custom ‘looks’.
    And i would like both…
  • ‘main dashboard’ with all lights, outlets, etc where you can control the house. nothing fancy just functional.
  • ‘fancy dashboard’ of every floor with outlets, lights, sensors etc on a floorplan and on there positions like real life. (easier for the kids)

Guess there is no way to have both?
On second thought…
I could just throw those away but what with there bodies…? :upside_down_face:

Welcome to OLL!

Personally I believe like the late George Carlin ~ “There are no bods words”, but maybe a few that shouldn’t be said on TV. Good thing we’re not on TV :wink:

Yes, very possible.

I’m not familiar with “DashEd”. Free to post or PM me a link, but it is likely having one dashboard ‘processed’ by 2 editors will result in undesired, unsupported, resulted. With too many cooks, who knows what might come out of the kitchen!

You can use them both separately on a given dashboard without interference, I presume, but without knowledge of “DashEd” and how it works, I could be mistaken.

  • The nearest university with a body donation program or your alma mater.
  • A body farm for forensic anthropology research – think CSI.
  • Mayo Clinic for clinical education and research.
  • Organ and tissue donation.
  • Have your body plastinated for use in anatomical education.

:rofl:

First I think i’m gonna dig 50cm deeper so ppls won’t find them if they dig like they normally do.
Second, by putting a ‘Endangered Plant’ on top nobody will even be allowed to dig near it…
:rofl: :joy: :upside_down_face:

1 Like

I’ve just gone ahead and added some Sonoff devices (all using Markus’ drivers) to my Battery status dashboard and found that none of the Sonoff tiles come up with a battery icon. I added a Hue sensor to the dashboard at the same time, and that one got its battery icon. Weird?

Edit: I tried re-compiling the dashboard through the Smartly site, but got the same result.

That’s an interesting issue. Tagging @spelcheck to get his input on that one. Can’t say it’s overly surprising HE only misses device uses Marcus’s drivers. :thinking: Disappointing to say the least.

The only advice I can offer is a workaround. You can set the icon via CSS. The more I think on it, that would be a mess since the battery icon changes with the % level. Let’s give the master a bit to opine on the subject.

I think the issue is the decimal point. I see the same thing. Integer values get an icon, and reports that include a decimal point do not.

2 Likes

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.

2 Likes

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?

1 Like

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!