tschamm / boschshc-hass

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

Add event on scenario triggering #6

Closed zimjjan closed 4 years ago

zimjjan commented 4 years ago

According to BOSCH, there is a message sent via the longpoller whenever a scenario is triggered. It would be awesome, if this message could be translated into an event in HA. Thereby, e.g., the Twist Remote will be enabled to trigger scenarios in HA.

For reference, see https://github.com/BoschSmartHome/bosch-shc-api-docs/issues/38#issuecomment-709936391.

tschamm commented 4 years ago

I'll checked for this. What was already possible is to trigger a scenario from within HA, by using the service "boschshc.trigger_scenario". With boschshcpy==0.1.9 I added the functionality for the other way around. It should now be possible to watch for the event "bosch_shc_scenario_triggered". The event will contain the name, id and lastTimeTriggered provided from SHC.

zimjjan commented 3 years ago

Correction: event can be found under "bosch_shc.scenario_trigger"