android icon indicating copy to clipboard operation
android copied to clipboard

Add Wear OS complications

Open leroyboerefijn opened this issue 3 years ago • 8 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Add support for watchface complications. I'm thinking of the following:

  • Entity state
  • Entity attribute value
  • Template value
  • Template text

Describe alternatives you've considered, if any N.a.

Additional context

leroyboerefijn avatar Nov 10 '21 13:11 leroyboerefijn

And sensor data please.

barrymossel avatar Dec 09 '21 14:12 barrymossel

More information here: https://developer.android.com/training/wearables/watch-faces/adding-complications

barrymossel avatar Feb 22 '22 09:02 barrymossel

Are there plans on implementing this feature? If there isn't anybody working on it already, I might eventually have a look into this myself, I have developed a Wear OS with complication support before, however it was written in Java (never started to like Kotlin...) and I'm not familiar with the HA code base at all so it would definitely be a challenge :D

Vedeneb avatar Feb 23 '22 21:02 Vedeneb

@Vedeneb I have it on my list to start working on, but cannot give you any guarantees on timing ;)

If you feel like contributing, then please feel free to work on it! I think the entity state widget will give an example of the type of information we could set in a complication. Also, we're always happy to support over on the discord :)

leroyboerefijn avatar Feb 23 '22 21:02 leroyboerefijn

This would be awesome. Here's a link to 'Exposing your Data to Complications': https://developer.android.com/codelabs/data-sources#0

quack3d avatar May 04 '22 08:05 quack3d

I think it would be useful to be able to update the complication on demand, eg. with a notification command sent to the phone, that will forward it to the Wear OS app. But I admit that implementing a periodically updating complication that shows an entity's state would be simpler based on the already implemented Tile's code (I don't know if It can be reused or not).

marazmarci avatar May 06 '22 18:05 marazmarci

I think it would be useful to be able to update the complication on demand, eg. with a notification command sent to the phone, that will forward it to the Wear OS app.

If this is implemented, it should probably match the notification command for Apple Watch users to make it easier to handle multiple devices / blueprints.

jpelgrom avatar Jun 02 '22 19:06 jpelgrom

@marazmarci @jpelgrom I suggest that a new feature request is made for that once the complication PR is merged

leroyboerefijn avatar Jun 09 '22 17:06 leroyboerefijn

Now that initial support has been added should we close this request or is there more to be done still?

dshokouhi avatar Sep 06 '22 03:09 dshokouhi

My original plan was to also add attribute support instead of just state support. But maybe it makes sense to just close this indeed

leroyboerefijn avatar Sep 06 '22 05:09 leroyboerefijn

ok lets close this one and get new requests created for anything else we want to add.

dshokouhi avatar Sep 06 '22 15:09 dshokouhi