core/homeassistant/components/shelly
Wouter 6fa87da5bd
Add Shelly script events entities (#135979)
* When an event is received from a script component on a shelly device, this event is send to the hass event bus

* Event emitted from a script will be send to the corresponding event entity

* Added tests for the shelly script event

* The event entity for script are now hidden by default

* Forgot to enable script event entities by default for the test

* Made serveral improvement for the shelly script event entity
- Added device name to event entity
- The event entity is now only created when a script has any event types
- The test for this entity now uses snapshots

* Shelly script event entities will not be create for the BLE scanning script and will now be automatically removed when the script no longer exsists

* Changed variable name to avoid confusion with _id

* Removed old const from first implementation and removed _script_event_listeners and used _event_listeners instead to listen for script events
2025-02-03 22:41:39 +02:00
..
bluetooth Set via_device for remote Bluetooth adapters to link to the parent device (#137091) 2025-02-01 12:10:59 -06:00
__init__.py
binary_sensor.py Add support for Shelly Flood gen4 (#136981) 2025-02-03 13:04:14 +01:00
button.py
climate.py
config_flow.py
const.py Add Shelly script events entities (#135979) 2025-02-03 22:41:39 +02:00
coordinator.py Set via_device for remote Bluetooth adapters to link to the parent device (#137091) 2025-02-01 12:10:59 -06:00
cover.py
device_trigger.py
diagnostics.py
entity.py
event.py Add Shelly script events entities (#135979) 2025-02-03 22:41:39 +02:00
icons.json
light.py
logbook.py
manifest.json
number.py
select.py
sensor.py
strings.json
switch.py
text.py
update.py
utils.py Add Shelly script events entities (#135979) 2025-02-03 22:41:39 +02:00
valve.py