[RELEASE] HD+ - Android Dashboard

@jpage4500 question about the location devices and updates.

Because it can tell when the phone is charging in a certain way I'm testing if I can replace my current tasker calling a rule for bedtime.

This way would be a lot more reliable however it seems it can take quite a while to update it.

So the question is are you polling the andoid events or listening to them and if polling how often.

HD+ does listen for certain android events like power connected/disconnected and network changed (WIFI -> cellular). But, Android will only deliver these events to HD+ while it's running (either in the foreground or background).

Tasker has a few ways around this -- notably by showing an ongoing system notification which keeps the app running in the background and prevents it from being killed by the OS.

There's another API called Activity Recognition Transition API which I'm using for location/presence monitoring. It will start HD+ when the OS thinks the device is moving/driving/walking/etc. Once HD+ is started I can poll other things like charging status and network.

So, it's a somewhat complicated answer.. I'm not polling anything when the app isn't running but I can receive activity updates which at least on my test devices have been fairly reliable. It might be good enough to do a task (ie: turn off a light/etc) when some OS event happens (wireless charging between the hours of X and Y).. that kind of thing.

What does your tasker rule do and when?

My tablet has the same issue.. I just don't put any 'tall' tiles at the bottom of the screen. The other workaround could be to add an empty tile or 2 at the bottom of the screen. That seems to work on my test phone.

I have a TODO to replace or modify this layout manager.. it's a pretty complicated piece of code though so I haven't gotten it done yet

1 Like

Sorry I missed this question earlier. I don't think anything like this exists today but I'm open to adding it. What does this tile look like today? Is it just the temperature like the image below?

It reminds me of the light sensor device type. It does change the background color (a gradient) so the higher the illuminance the brighter the background color.

1 Like

That's exactly what the weather station temp tile looks like - a static background with a configurable color. Thank you for considering it.

Ok this makes sense with what I have seen. If I open the app it works straight away and if I'm moving around it works.

Bit if I put my phone on my charger it's not moving neither do I have the app open so it can take a while to come in.

I have a tasker rule that if I'm connected to my home WiFi (therefore I'm at home) and bool is false and I'm wireless charging call a rule to set me as sleeping and flip bool.

Then if I'm not changing and bool is true and I shake my phone call another rule which sets sleeping to awake.

Same for the wife. This all decides the mode and what bedside lights turn on etc.

The issue is because tasker doesn't know about hubitat it can get out of sync which is why I wanted to the do it all with direct devices.

I could try and do a combo of the two.

That seems like a good enough work around :+1:t2:

Edit: just remembered I tried this before and it doesn't work for me.

version 1.0.TBD (beta)

  • show different background color for temperature tiles (based on temp)
  • default contact sensor with "garage" in the name to garage door type
  • allow contact sensors to be garage door device type
  • remove USE_EXACT_ALARM permission
  • prompt for alarm permission if necessary when using light -> set timer

Several changes in this version..

If you have a contact sensor with "garage" in the name it will default to the garage door device type. Hopefully that won't mess up anyone but I finally removed my old MyQ Lite Hubitat app since it wasn't really working anyway. I was already using some contact sensors for my garage doors anyway so I wanted them to be able to use the garage door device type.

I also have a contact sensor on the door into the house from the garage which is labeled "Garage Door" so I can see how the above change might mess with some devices. You can always change the device type and it won't change again -- but if I can figure out a better way to do this I will.

The other big change is showing a dynamic background for Temperature or Weather device types.

I'm using the color range chart below:
image


It's disabled by default. To enable this per device, click on Edit -> Temp Background. There's also a Celsius option that shows up if your temps are in Celsius.

8 Likes

This is great!
One thing though - it only works for temperature tiles.
Many of my temperature devices are set as Custom, due to the fact that they give Temp and Humidity. Can these be set to do the same?
Also, the other tile it would be great to see the temp colour change is on a Thermostat tile, since it is reporting the temp the same way.

The OwnTracks Presence app is not actively maintained anymore. The OP is still doing some maintenance, but has started recommending a different OwnTracks integration by @lpakula.

Since Life360 decided to take their toys away and not let anyone else in the sandbox use them I've made the switch. (I was partially forced to since I was having hub issues and lost all of my apps.) I really miss the location map of Life360 and it looks like the original OT's has it. What is needed to make the new OT's and HD+ work the same?

@jpage4500 Does HD+ pull from the Life360 cloud directly? I can do up a translation the converts the OwnTracks packets to Life360 style if HD+ needs to point at a different data source.

1 Like

This is cool. But when reading it on a tablet from across the room, the background color makes it difficult to see the numbers. I tried changing the font text colors, but it remains on the theme text color. That theme that makes all the icons and text a blue teal color. I think white will be possible to read across the room, or perhaps a black outline of the numbers. What am I doing wrong that I can't get the text color to stick?

I can try a few different variations of this.. maybe one with much lighter background colors. Another option would be to just add some highlighting around the text like I do for thermostats when heating or cooling. Much more subtile but should make reading easier.

I'll have to look into the text color issue

image image

I can try to also support custom tiles and thermostat. Custom tiles might be tricky but I'll at least take a look

It just uses the lat/lng values that the Hubitat driver passes down via MakerAPI. I was supporting OwnTracks devices too and I didn't know there was 2 versions. I can install and support this version too as long as it returns lat/lng in the driver. If you also have accuracy I'll put a little circle around the pin. Lastly, if there's some avatar URL I can display that as well.

2 Likes

Maybe even just disable the theme (on that tile) if you have the Temp Background enabled?

I was expecting a more dramatic background color change for the temperature tiles.

I see the problem here.. it's a bug I introduced recently and will be fixed.

I tried a few different ways to show a color for the temperature.. let me know if any of these look better.

here's how it originally looked:

for my $.02 -- I like to keep color to a minimum personally.. that way when I use it it sticks out - like a light/door/lock left open or on. So I'd probably pick the first one so it's fairly subtile

The other thing I'm not sold on is the color -> temp chart either.. for reference it's in this post

2 Likes

I like the original color choices the best. Not so keen on the color numbers.

@jpage4500 -
I like the background colors... Maybe make it a user defined option?

I like the last one - the background that changes based on the temperature.
As for the chart - it doesn't seem to work as well for Celsius