Beispiel #1
0
def get_heizung():
    vorn = get_fhem('max.t_office_vorn')['Readings']['desiredTemperature']['Value']
    mitte = get_fhem('max.t_office_mitte')['Readings']['desiredTemperature']['Value']
    hinten = get_fhem('max.t_office_hinten')['Readings']['desiredTemperature']['Value']
    thorsten = get_fhem('max.t_office_thorsten')['Readings']['desiredTemperature']['Value']

    return u'Heizungseinstellungen\nVorn (Martin): {0}\nMitte (Lisa): {1}\nHinten (Nerdroom): {2}\nThorsten (Sauna): {3}'.format(
        vorn, mitte, hinten, thorsten)
Beispiel #2
0
def get_heizung():
    vorn = get_fhem(
        'max.t_office_vorn')['Readings']['desiredTemperature']['Value']
    mitte = get_fhem(
        'max.t_office_mitte')['Readings']['desiredTemperature']['Value']
    hinten = get_fhem(
        'max.t_office_hinten')['Readings']['desiredTemperature']['Value']
    thorsten = get_fhem(
        'max.t_office_thorsten')['Readings']['desiredTemperature']['Value']

    return u'Heizungseinstellungen\nVorn (Martin): {0}\nMitte (Lisa): {1}\nHinten (Nerdroom): {2}\nThorsten (Sauna): {3}'.format(
        vorn, mitte, hinten, thorsten)
Beispiel #3
0
def get_clima():
    authorization = netatmo.ClientAuth()
    devList = netatmo.DeviceList(authorization)
    temp = devList.lastData()['office']['Temperature']
    co2 = devList.lastData()['office']['CO2']
    hum = devList.lastData()['office']['Humidity']
    when = time.strftime("%H:%M:%S", time.localtime(devList.lastData()['office']['When']))
    x_temp = devList.lastData()[u'Auβenraum']['Temperature']
    x_hum = devList.lastData()[u'Auβenraum']['Humidity']
    x_when = time.strftime("%H:%M:%S", time.localtime(devList.lastData()[u'Auβenraum']['When']))
    t_temp = get_fhem('max.t_office_thorsten')['Readings']['temperature']['Value']
    return u'Um {0} war es {1}C, {2}% relative Luftfeuchte und CO2 war bei {3} Schnipsel pro Raummeter.\nHinten beim Thorsten sind es {4}.\nDraußen sind {5}°C und {6}% Luftfeuchte.'.format(
            when, temp, hum, co2, t_temp, x_temp, x_hum)
Beispiel #4
0
def get_clima():
    authorization = netatmo.ClientAuth()
    devList = netatmo.DeviceList(authorization)
    temp = devList.lastData()['office']['Temperature']
    co2 = devList.lastData()['office']['CO2']
    hum = devList.lastData()['office']['Humidity']
    when = time.strftime("%H:%M:%S",
                         time.localtime(devList.lastData()['office']['When']))
    x_temp = devList.lastData()[u'Auβenraum']['Temperature']
    x_hum = devList.lastData()[u'Auβenraum']['Humidity']
    x_when = time.strftime(
        "%H:%M:%S", time.localtime(devList.lastData()[u'Auβenraum']['When']))
    t_temp = get_fhem(
        'max.t_office_thorsten')['Readings']['temperature']['Value']
    return u'Um {0} war es {1}C, {2}% relative Luftfeuchte und CO2 war bei {3} Schnipsel pro Raummeter.\nHinten beim Thorsten sind es {4}.\nDraußen sind {5}°C und {6}% Luftfeuchte.'.format(
        when, temp, hum, co2, t_temp, x_temp, x_hum)
Beispiel #5
0
from fhem import get_fhem, set_fhem

print get_fhem('max.t_office_thorsten')['Readings']['temperature']['Value']

set_fhem('set MaxOffice desiredTemperature auto 18')
Beispiel #6
0
from fhem import get_fhem, set_fhem

print get_fhem("max.t_office_thorsten")["Readings"]["temperature"]["Value"]

set_fhem("set MaxOffice desiredTemperature auto 18")