Hubitat C8 2.4.1.177
I've been delving into trying to make a custom device driver for my Mini-Split Air Conditioner. The driver is no problem, but I'm not sure how to put it on a Dashboard.
The driver has:
A boolean switch (representing cool/heat)
A boolean switch (representing on/off)
Two variables climateTempMin, climateTempMax (decimals, representing min/max temp thresholds)
Functions for changing the climateTempMin/Max values, etc. Then I'd use buttons to increment/decrement those vars by 0.5 degrees (not unlike the Commands page in Device info)
I can figure the Device driver out on my own. No assistance needed there.
What am I stuck on is, how can I next make a custom template in Dashboard representing this new device, so I can assign it to a tile?
The simple template I'm imagining for this device would be like:
Cool/Heat
[switch]
Set Min Temp
[button] [climateTempMinValue TextField] [button]
Set Max Temp
[button] [climateTempMaxValue TextField] [button]
On/Off
[switch]
Is it possible? Then I'd make a new "Climate" dashboard, with one big tile on it (for now), and assign my device to it, and display all the above controls/labels in that single tile?
Can I somehow make a custom template for Dashboard, assign it to a virtual device whose type is my custom driver, and then add that device to a Dashboard with a template representing the device's switches and buttons (commands).
Thanks!
PS - if something like what I want to do already exists, I'd appreciate a link. And, I've found a couple threads with elaborate workarounds for making a custom template for a custom device by mapping individual tiles to each element of the device user interface, but that seems really kludgy...hopefully those aren't the only solutions?