Exemple #1
0
def sharedData(data,log):
	sharedData = data._shared
	log['target_type'] = sharedData['target_temperature_type']
	log['fan_state'] = sharedData['hvac_fan_state']
	log['target_temperature'] = utils.c_to_f(sharedData['target_temperature'])
	log['current_temperature'] = utils.c_to_f(sharedData['current_temperature'])
	log['ac_state'] = sharedData['hvac_ac_state']
def deviceData(data,log):
	global away_temp
	deviceData = data._device
	log['leaf_temp'] = utils.c_to_f(deviceData['leaf_threshold_cool'])
	away_temp = utils.c_to_f(deviceData['away_temperature_high'])
	log['$timestamp'] = datetime.fromtimestamp(deviceData['$timestamp']/1000).isoformat()
	log['current_humidity'] = deviceData['current_humidity']
def deviceData(data, log):
    global away_temp
    deviceData = data._device
    log['leaf_temp'] = utils.c_to_f(deviceData['leaf_threshold_cool'])
    away_temp = utils.c_to_f(deviceData['away_temperature_high'])
    log['$timestamp'] = datetime.fromtimestamp(deviceData['$timestamp'] /
                                               1000).isoformat()
def sharedData(data, log):
    sharedData = data._shared
    log['target_type'] = sharedData['target_temperature_type']
    log['fan_state'] = sharedData['hvac_fan_state']
    log['target_temperature'] = utils.c_to_f(sharedData['target_temperature'])
    log['current_temperature'] = utils.c_to_f(
        sharedData['current_temperature'])
    log['ac_state'] = sharedData['hvac_ac_state']
def deviceData(data, log):

    deviceData = data._device
    log['leaf_temp'] = utils.c_to_f(deviceData['leaf_threshold_cool'])
    #away_temp = utils.c_to_f(deviceData['away_temperature_high'])
    log['away_temp_high'] = utils.c_to_f(deviceData['away_temperature_high'])
    log['away_temp_low'] = utils.c_to_f(deviceData['away_temperature_low'])
    log['$timestamp'] = datetime.fromtimestamp(deviceData['$timestamp'] /
                                               1000).isoformat()
    log['humidity'] = deviceData['current_humidity']
Exemple #6
0
def deviceData(data,log):
	global away_temp
	deviceData = data._device
	log['leaf_temp'] = utils.c_to_f(deviceData['leaf_threshold_cool'])
	away_temp = utils.c_to_f(deviceData['away_temperature_high'])