tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
162 stars 24 forks source link

Events? #118

Closed dolodobendan closed 9 months ago

dolodobendan commented 10 months ago

Hi,

Philips has event entities for their switches for some time now:

image

Would this be possible with boschshc-hass, too?

Thank you

tschamm commented 10 months ago

I already looked into it after the event entities have been released as new feature, but stopped I missed some implementation details. I plan to integrate this in one of the next releases.

tschamm commented 9 months ago

The current master adds support for the event Platform. Careful, it's a breaking change: The former bosch_shc.event will not be triggered for UniversalSwitches and Scenarios anymore. So you have to change automations. If you want to test it and give feedback, I would be happy.

tschamm commented 9 months ago

The current release prevents the change to break existings systems, both the event platform as well as bosch_shc.event triggers can be used.

dolodobendan commented 9 months ago

The current master adds support for the event Platform. Careful, it's a breaking change: The former bosch_shc.event will not be triggered for UniversalSwitches and Scenarios anymore. So you have to change automations. If you want to test it and give feedback, I would be happy.

Sure thing, how can I help?

Never mind, I switched to the beta channel and installed 0.4.68.

tschamm commented 9 months ago

Is it working as expected?

dolodobendan commented 9 months ago

Nothing broken here. I used Device/Trigger "'LOWER_BUTTON' PRESS_SHORT" (etc.) as triggers in my automation and it still works. Thank you!

Deniz66 commented 9 months ago

Nothing broken here. I used Device/Trigger "'LOWER_BUTTON' PRESS_SHORT" (etc.) as triggers in my automation and it still works. Thank you!

Could you wirte an example please how to use the button event short press from the "tür/fensterkontakt 2" to trigger an automatisation

tschamm commented 9 months ago

Bosch does not expose the button event via the API 😕. However you can create a scenario without any action in the Smart Home App and trigger that via the button. You can listen in HA to that scenario.