This commit is contained in:
2026-08-07 10:09:42 +02:00
parent 52d11bfff0
commit 52442c50f1
15 changed files with 827 additions and 252 deletions

View File

@@ -35,6 +35,8 @@ async def async_setup(hass, config):
async def async_set_half_service(service):
entity_ids = await async_extract_entity_ids(hass, service, expand_group=True)
for entity_id in entity_ids:
if not entity_id.startswith(f"{COVER_DOMAIN}."):
continue
data = {
ATTR_ENTITY_ID: entity_id,
ATTR_POSITION: hass.states.get(entity_id).attributes.get(ATTR_HALF_POSITION, 20)