Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95358

Ecobee "vent:" and "ventilatorMinOnTime:" not supported natively. How do I integrate those?

$
0
0

@IsaacMTSU wrote:

Hey, everybody! I’m new to Home Assistant, but loving it already. I mainly wanted it so I can control my fresh air damper in more “smart” way. I have integrated Ecobee and everything works well, but it’s limited to basic mode changes, temp changes, fan on/off, and stuff like that.

According to the Ecobee API Setting documentation, there’s way more settings/attributes to play with: https://www.ecobee.com/home/developer/api/documentation/v1/objects/Settings.shtml

How do I get the “vent” setting and/or “ventilatorMinOnTime” settings to be changable via Home Assistant? I can do that from the start for “fan” and “fanMinOnTime” because those are already loaded into the basic integration as a fan mode toggle and the “ecobee.set_fan_min_on_time”.

Edit: I found this in the ecobee.py. I want to do this just for the vent instead of fan. Is it possible to add definitions for the attribute and create a service similar to this, but using the vent instead?

SET_FAN_MIN_ON_TIME_SCHEMA = vol.Schema({
    vol.Optional(ATTR_ENTITY_ID): cv.entity_ids,
    vol.Required(ATTR_FAN_MIN_ON_TIME): vol.Coerce(int),

-and-


'def fan_min_on_time_set_service(service):
        """Set the minimum fan on time on the target thermostats."""
        entity_id = service.data.get(ATTR_ENTITY_ID)
        fan_min_on_time = service.data[ATTR_FAN_MIN_ON_TIME]

        if entity_id:
            target_thermostats = [device for device in devices
                                  if device.entity_id in entity_id]
        else:
            target_thermostats = devices

        for thermostat in target_thermostats:
            thermostat.set_fan_min_on_time(str(fan_min_on_time))

            thermostat.schedule_update_ha_state(True)

-and-

hass.services.register(
        DOMAIN, SERVICE_SET_FAN_MIN_ON_TIME, fan_min_on_time_set_service,
        descriptions.get(SERVICE_SET_FAN_MIN_ON_TIME),
        schema=SET_FAN_MIN_ON_TIME_SCHEMA)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>