コード例 #1
0
ファイル: group.py プロジェクト: djtimca/home-assistant-dev
def async_describe_on_off_states(hass: HomeAssistantType,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        set(HVAC_MODES) - {HVAC_MODE_OFF},
        STATE_OFF,
    )
コード例 #2
0
def async_describe_on_off_states(
    hass: HomeAssistant, registry: GroupIntegrationRegistry
) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {STATE_ON, STATE_PAUSED, STATE_PLAYING, STATE_IDLE}, STATE_OFF
    )
コード例 #3
0
ファイル: group.py プロジェクト: djtimca/home-assistant-dev
def async_describe_on_off_states(hass: HomeAssistantType,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {
            STATE_ALARM_ARMED_AWAY,
            STATE_ALARM_ARMED_CUSTOM_BYPASS,
            STATE_ALARM_ARMED_HOME,
            STATE_ALARM_ARMED_NIGHT,
            STATE_ALARM_TRIGGERED,
        },
        STATE_OFF,
    )
コード例 #4
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {
            STATE_ECO,
            STATE_ELECTRIC,
            STATE_PERFORMANCE,
            STATE_HIGH_DEMAND,
            STATE_HEAT_PUMP,
            STATE_GAS,
        },
        STATE_OFF,
    )
コード例 #5
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states({STATE_PROBLEM}, STATE_OK)
コード例 #6
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {STATE_CLEANING, STATE_ON, STATE_RETURNING, STATE_ERROR}, STATE_OFF)
コード例 #7
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.exclude_domain()
コード例 #8
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    # On means open, Off means closed
    registry.on_off_states({STATE_OPEN}, STATE_CLOSED)
コード例 #9
0
def async_describe_on_off_states(hass: HomeAssistantType,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states({STATE_LOCKED}, STATE_UNLOCKED)