t0bst4r / home-assistant-matter-hub

Publish your Home-Assistant Instance using Matter.
Apache License 2.0
189 stars 13 forks source link

[Enhancement] Support for Buttons #195

Open Silther opened 1 week ago

Silther commented 1 week ago

Please add support fur buttons. I currently use the addon for starting an my home assistant dashboard cast to my google nest hub. Which works with input-booleans but buttons would be nicer

t0bst4r commented 4 days ago

Can you provide the attributes and state of an button entity? (HA -> Dev Tools -> State -> Search for your button)

Silther commented 3 days ago

image

That?

t0bst4r commented 3 days ago

Okay, so buttons don't have an "on" or "off" state. How would you suggest implementing them? I assume it's not a sensor device, because you want to press it from GH or alexa, right?

We could simulate an "on / off" unit, but we won't be able to determine an "on" or "off" state.

Silther commented 3 days ago

I should uploud a new photo as it has a state once you press the button, looks like a timestamp when it was pressed.

But isn't there already an official matter implementation?

t0bst4r commented 3 days ago

I should uploud a new photo as it has a state once you press the button, looks like a timestamp when it was pressed.

Yes i have tested this with a helper, too. No more screenshot needed.

But isn't there already an official matter implementation?

I couldn't find one. But maybe i'm just stupid 😀

t0bst4r commented 3 days ago

I need to correct myself. There is a device type for it in matter: Generic Switch