This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for Netatmo Smart Thermostat. | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/climate.netatmo/ | |
""" | |
import logging | |
from datetime import timedelta | |
import voluptuous as vol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for Netatmo Smart Thermostat. | |
THIS FILE GOES TO config/custom_components/climate/ | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/climate.netatmo/ | |
""" | |
import logging | |
from datetime import timedelta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for the Netatmo devices. | |
THIS FILE GOES TO config/custom_components/ | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/netatmo/ | |
""" | |
import logging | |
from datetime import timedelta | |
from urllib.error import HTTPError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This code sample uses requests (HTTP library) | |
import requests | |
from sys import version_info | |
import json | |
import sys | |
# HTTP libraries depends upon Python 2 or 3 | |
if version_info.major == 3 : | |
import urllib.parse, urllib.request | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
coding=utf-8 | |
""" | |
import time | |
from . import NoDevice, postRequest, _BASE_URL | |
_SETTEMP_REQ = _BASE_URL + "api/setthermpoint" | |
_GETTHERMOSTATDATA_REQ = _BASE_URL + "api/getthermostatsdata" | |
_GETHOMESDATA_REQ = _BASE_URL + "api/homesdata" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for the Netatmo devices. | |
For Home Assistant >=0.88. | |
THIS FILE GOES TO config/custom_components/netatmo/ | |
""" | |
import logging | |
from datetime import timedelta | |
from urllib.error import HTTPError | |
import voluptuous as vol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for Netatmo Smart thermostats. | |
For Home Assistant >=0.88. | |
THIS FILE GOES TO config/custom_components/netatmo/ | |
""" | |
import logging | |
from datetime import timedelta | |
import voluptuous as vol | |
from homeassistant.const import ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for Netatmo Smart thermostats. | |
For Home Assistant >=0.89. | |
THIS FILE GOES TO config/custom_components/netatmo/ | |
""" | |
import logging | |
from datetime import timedelta | |
import voluptuous as vol | |
from homeassistant.const import ( |