[RELEASE] smartly 2.1.0 featuring smartly-inject

I know what your saying, as I can replicate it.

but unfortunately there is not a solution right now except DO NOT use blanks in columns and rows when updating smartly. If those fields blank, and run your JSON through smartly it WILL convert you to advanced grid settings (linked above) and your grid will get smaller. This is an unintended side effect to the advanced grid conversion feature. It is being looked into, but right now the workaround is to avoid using “auto” while updating.

Before you update go in and put 135 by 66 (the default smartly grid). Once you’ve updated go back and remove the numbers and revert to “auto” . This will keep dashes the way you want them until smartly is update. Sorry for the inconvenience.

1 Like

The dashboard I was using before was just to play around. Now I’m trying to make one for real and running into a weird issue. When looking at the dashboard, it looks like this.

When I click the pawprint to make adjustments, it looks like this

and I’m not able to drag and of the tiles further to the right than this.

Nevermind… I just started over and it fixed itself… it was probably something I did.

2 Likes

Hello, I’m brand new to using Hubitat Package Manager, but I’m trying it for the first time to install Smartly Inject. Unfortunately, it’s failing with the message, “An error occurred while installing the package: Failed to install file https:// raw.githubusercontent[dotcom/ markus-li/Hubitat/release/assets/smartly.js. Please notify the package developer…”

So, I’m able to find the package properly, and it appears to go through all the right steps to get to the point where it’s going to install, but then the installation fails. Looking at the logs, this is what I see…

app:323 2021-02-11 10:35:06[dot]743 infoFatal error occurred, rolling back
app:323 2021-02-11 10:35:06[dot]737 errorError installing file: groovyx[dot]net[dot]http[dot]HttpResponseException: Server Error
app:323 2021-02-11 10:35:06[dot]668 infoInstalling https: //raw[dot]githubusercontent[dot]com/markus-li/Hubitat/release/assets/smartly[dot]js
app:323 2021-02-11 10:35:06[dot]120 infoInstalling Smartly Inject
app:323 2021-02-11 10:35:05[dot]893 infoDownloading Smartly Inject
app:323 2021-02-11 10:35:05[dot]621 infoDownloading https: //raw[dot]githubusercontent[dot]com/markus-li/Hubitat/release/assets/usermode[dot]json
app:323 2021-02-11 10:35:05[dot]285 infoDownloading https: //raw[dot]githubusercontent[dot]com/markus-li/Hubitat/release/assets/smartly-injected[dot]min[dot]css
app:323 2021-02-11 10:35:04[dot]855 infoDownloading https: //raw[dot]githubusercontent[dot]com/markus-li/Hubitat/release/assets/smartly[dot]js

Please note, I had to slightly modify the log file contents to avoid posting links in this reply (Oh-La Labs rules).

Any help would be much appreciated. Thank you!

2 Likes

Thank you for posting your issue here. We have been seeing this lately from more and more users. We will look into.

For now please install smartly inject manually following these steps. If you have trouble please LMK.

I’ve seen this fixed after updating HPM from within HPM. Could you give that a try first and let us know? :crossed_fingers:

If this remains an issue after that, since the files are present and all manifests are in accordance with the specs of HPM it would need to be reported to the author of HPM (dman2306 in the other community, as far as I know he is not in ours). If there are issues he needs our help to track I’d love to hear from him.

1 Like

I’d love to have him on here, even just to PM! I know I’m missing more than a handful of good people, so if anybody is in touch with him, say hello. :v:

Keep getting this little tyke popping up!

image

image

How can i kill the little blighter!

Also not strictly a question for here but how do i publish a user only interface with no edit function? a friends 3 year old just deleted some tiles…

Who him?
image
that’s the smartly inject tile. It should get “sucked up” once the dashboard loads. Make sure you do not have him added twice.

Quick way (will leave paw and still allow DnD edits), and tile additions, just not removal.

Put a check in “Hide three dot menu on all tiles”

Lock locked (no edits, until unlocked)

In HE main interface click Apps > Click on the name of the Dashboard to lock > Advanced (at bottom) > Turn on - Lock down dashboard so no change…

1 Like

only once, but still visible, deleted and the drag and drop option went away, re added and hes still visible.

Thats a global setting isnt it? is there no way to just lock specific devices?

Now your just being greedy :rofl:

No. NTMK. Not sure it is even possible since the webserver would only see the IP traffic not a device in such a way to allow for permissions to be set. If anyone has a workaround I’d be interested to hear them.

I cannot replicate this issue. When it is re-add does the “paw” come back? Have you tried making a “clean” dashboard and seeing what happen?

Is anyone else seeing this issue?

For anyone testing - even if I add CSS to try to make it stay visible, it’s still disappears and is listed ‘display:none’ in the inspect screen

I think i know whats causing it, dont have time today to test it.

If its what i think it is its only going to effect us newbies and they have to be ambitious newbies, the sort that run before they can walk like me :wink:

if you create a new dash and allow it to auto add all tiles, (newbie mistake) it will add the smartly tile (ambitious newbie mistake, playing with Smarly before they know how to use dashboard) but the paw print wont appear unless you re load the dash so you dont realise its there. (actually it wont appear anyway because you havnt yet converted to smartly)

if you then convert to smartly and re past the CSS you still wont see the paw so you add another smartly tile and refresh and you end up with the tile twice. that causes the visibility issue. (I Think)

deleting the tiles and re adding just one doesnt seem to solve the issue.

At least i think thats whats causing it but wont be able to test until tonight.

1 Like

Yes, the smartly inject tile is visible on all of my dashboards that I am using it, it is not hidden. I have not tried on a brand new dashboard. I just move the tile down to a lower row at this point.

By chance did you use the HE “dashboard builder” auto fill when you 1st set up the dashes? If so see the post above yours.

If not are these new dashes or old? Did it just happen or have they been this way? Since when?

1 Like

@DenverTech99 thanks for helping troubleshoot! I wanted to mention, let’s make sure we are selecting ‘javascript’ as the attribute for the tile. If auto-added when creating a new dash, it’s possible the attribute is not selected. That being said, let us know what happens when you create a new dashboard and add the tile as an attribute tile, and select ‘javascript’ attribute.

@spelcheck I do have javascript chosen (Smartly tile is in bottom left), but I did do double take not recalling.

@TechMedX I did not use the dashboard builder.

1 Like

Let’s have you try repairing Smartly Inject via HPM.

Then ‘Initialize’ in the device. You should ‘Enabled’ with a broken image after it. The broken image is what is doing the initial injection.

@spelcheck Completed the repair, did the initialize, tile still on the dashboard.

I also tried to delete the tile after the repair, then add it back in, tile displays again.

I can try to create a fresh dashboard later today with a similar layout and see if it appears.

1 Like