Exemple #1
0
    def __init__(self, nest=None, gpio=None, ifttt=None):
        Zone.__init__(self, nest=nest, gpio=gpio, ifttt=ifttt)

        self.logger = logging.getLogger('HVAC.Zone.CatRoom')

        self.display_name = "Cat Room"

        # ifff action and response retry value (0 = no wait for an activation, assume it worked)
        self.ifttt_cool_on = ("catroom_ac_on", 0)
        self.ifttt_cool_off = ("catroom_ac_off", 0)
        self.ifttt_cooling_on = ("catroom_ac_cool", 30)
        self.ifttt_cooling_off = ("catroom_ac_eco", 30)
        self.ifttt_cooling_temp = ("catroom_ac_set_%s", 0)

        self.ifttt_heating_on = ("catroom_heat_on", 0)
        self.ifttt_heating_off = ("catroom_heat_off", 0)

        # Current Living Room settings
        # GE (Haier) AEC10AX 10,000BTU 120V
        self.ac_min = 64
        self.ac_max = 86
        self.ac_temp_default = 70  # Default temp if no info from the thermostat
        self.ac_cooling_on_offset = -4  # When cooling drop temp by N degrees
        self.ac_cooling_off_offset = 4  # When NOT cooling raise temp by N degrees

        # Nest specific settings
        # Since the room is shared with the living room, we use this
        # as the basis of which mode we're in.  Note, Amy's room controls
        # the radiator heat for this room, but living room controls plugin heater.
        self.therm_name = "Living Room Thermostat"  # Nest name_long

        # GPIO specific settings
        self.gpio_cool = 1 << 3  # Living room cool stage 2
        self.gpio_heat = 1 << 1  # Living room heat stage 3
Exemple #2
0
    def __init__(self, nest=None, gpio=None, ifttt=None):
        Zone.__init__(self, nest=nest, gpio=gpio, ifttt=ifttt)

        self.logger = logging.getLogger('HVAC.Zone.LivingRoom')

        self.display_name = "Living Room"

        # ifff action and response retry value (0 = no wait for an activation, assume it worked)
        self.ifttt_cool_on = ("livingroom_ac_on", 0)
        self.ifttt_cool_off = ("livingroom_ac_off", 0)
        self.ifttt_cooling_on = ("livingroom_ac_cool", 30)
        self.ifttt_cooling_off = ("livingroom_ac_eco", 30)
        self.ifttt_cooling_temp = ("livingroom_ac_set_%s", 0)

        self.ifttt_heating_on = ("livingroom_heat_on", 0)
        self.ifttt_heating_off = ("livingroom_heat_off", 0)

        # Current Living Room settings
        # GE (Haier) AEC10AX 10,000BTU 120V
        self.ac_min = 64
        self.ac_max = 86
        self.ac_temp_default = 70  # Default temp if no info from the thermostat
        self.ac_cooling_on_offset = -10  # When cooling drop temp by N degrees
        self.ac_cooling_off_offset = 2  # When NOT cooling raise temp by N degrees

        # Nest specific settings
        self.therm_name = "Living Room Thermostat"  # Nest name_long

        # GPIO specific settings
        self.gpio_cool = 1 << 2  # Living room cool stage 1
        self.gpio_heat = 1 << 6  # Living room heat stage 2
Exemple #3
0
 def __init__(self, event):
     """ Initialize the zone """
     zoneType = None
     self.event = event
     if hasattr(event, "fromZone") and event.fromZone is not None:
         zoneType = event.fromZone.zoneType
     elif hasattr(event, "zones") and event.zones is not None and len(event.zones) > 0:
         zoneType = event.zones[0].zoneType
     Zone.__init__(self, event, zoneType=zoneType)
Exemple #4
0
 def __init__(self, event):
     """ Initialize the zone """
     zoneType = None
     self.event = event
     if hasattr(event, "fromZone") and event.fromZone is not None:
         zoneType = event.fromZone.zoneType
     elif hasattr(
             event,
             "zones") and event.zones is not None and len(event.zones) > 0:
         zoneType = event.zones[0].zoneType
     Zone.__init__(self, event, zoneType=zoneType)
Exemple #5
0
    def __init__(self, nest=None, gpio=None, ifttt=None):
        Zone.__init__(self, nest=nest, gpio=gpio, ifttt=ifttt)

        self.logger = logging.getLogger('HVAC.Zone.AmysRoom')

        self.display_name = "Amy's Bedroom"

        # ifttt action and response retry value (0 = no wait for an activation, assume it worked)
        self.ifttt_heating_on = ("amysroom_heat_on", 0)
        self.ifttt_heating_off = ("amysroom_heat_off", 0)

        # Nest specific settings
        self.therm_name = "Amy's Bedroom Thermostat"  # Long Name

        # GPIO specific settings
        self.gpio_heat = 1 << 0  # Amy's room stage 2 heat
Exemple #6
0
    def __init__(self, nest=None, gpio=None, ifttt=None):
        Zone.__init__(self, nest=nest, gpio=gpio, ifttt=ifttt)

        self.logger = logging.getLogger('HVAC.Zone.DiningRoom')

        self.display_name = "Dining Room"

        # ifff action and response retry value (0 = no wait for an activation, assume it worked)
        self.ifttt_heating_on   = ( "dining_room_heat_on", 0 )
        self.ifttt_heating_off   = ( "dining_room_heat_off", 0 )

        # Nest specific settings
        # Since the room is shared with the living room, we use this
        # as the basis of which mode we're in.
        self.therm_name  = "Living Room Thermostat" # Nest name_long

        # GPIO specific settings
        self.gpio_heat    = 1 << 1  # Living room heat stage 3
Exemple #7
0
    def __init__(self, nest=None, gpio=None, ifttt=None):
        Zone.__init__(self, nest=nest, gpio=gpio, ifttt=ifttt)

        self.logger = logging.getLogger('HVAC.Zone.MarksRoom')

        self.display_name = "Mark's Room"

        # ifff action and response retry value (0 = no wait for an activation, assume it worked)
        self.ifttt_cool_on = ("marksroom_ac_on", 0)
        self.ifttt_cool_off = ("marksroom_ac_off", 0)
        self.ifttt_cooling_on = ("marksroom_ac_cool", 30)
        self.ifttt_cooling_off = ("marksroom_ac_eco", 30)
        self.ifttt_cooling_temp = ("marksroom_ac_set_%s", 0)

        self.ifttt_cooling_fan_auto = ("marksroom_ac_fan_auto", 0)
        self.ifttt_cooling_fan_high = ("marksroom_ac_fan_high", 0)
        self.ifttt_cooling_fan_med = ("marksroom_ac_fan_med", 0)
        self.ifttt_cooling_fan_low = ("marksroom_ac_fan_low", 0)

        #self.ifttt_fan_on       = ( "marksroom_fan_on", 0)
        #self.ifttt_fan_off      = ( "marksroom_fan_off", 0)

        # Current Bedroom Room settings
        # GE (Haier) AEC08LX 8,000BTU 120V
        self.ac_min = 64
        self.ac_max = 86
        self.ac_temp_default = 70  # Default temp if no info from the thermostat
        self.ac_cooling_on_offset = -10  # When cooling drop temp by N degrees
        self.ac_cooling_off_offset = 2  # When NOT cooling raise temp by N degrees
        self.ac_cooling_fan = None

        # Nest specific settings
        self.therm_name = "Master Bedroom Thermostat (Mark's Bedroom)"  # Long Name

        # GPIO specific settings
        self.gpio_cool = 1 << 4  # Cooling stage 1
Exemple #8
0
 def __init__(self, character):
     """ Initialize the zone """
     self.character = character
     Zone.__init__(self, character, zoneType=CHARACTER)
Exemple #9
0
 def __init__(self, deck, zoneType=None):
     """ Initialize the Deck Zone """
     self.deck = deck
     Zone.__init__(self, deck, zoneType=zoneType)
Exemple #10
0
 def __init__(self, cards, zoneType=None):
     """ Initialize the Deck Zone """
     self.cards = cards
     Zone.__init__(self, cards, zoneType=zoneType)
Exemple #11
0
 def __init__(self, cards, zoneType=None):
     """ Initialize the Deck Zone """
     self.cards = cards
     Zone.__init__(self, cards, zoneType=zoneType)
Exemple #12
0
 def __init__(self, deck, zoneType=None):
     """ Initialize the Deck Zone """
     self.deck = deck
     Zone.__init__(self, deck, zoneType=zoneType)