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 IKEA Tradfri covers.""" | |
import logging | |
from pytradfri.error import PytradfriError | |
from homeassistant.components.cover import ( | |
CoverDevice, | |
ATTR_POSITION, | |
SUPPORT_OPEN, | |
SUPPORT_CLOSE, |
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
#!/usr/bin/env python3 | |
""" | |
This is an example of how the pytradfri-library can be used async. | |
To run the script, do the following: | |
$ pip3 install pytradfri | |
$ Download this file (example_async.py) | |
$ python3 example_async.py <IP> | |
Where <IP> is the address to your IKEA gateway. The first time |
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
name: Patriks hem | |
views: | |
# The name of a view will be used as tab title. | |
# Might be used for other things in the future. | |
- name: Example | |
tab_icon: mdi:home-assistant | |
# Each view can have a different theme applied. Theme should be defined in the frontend. | |
# The cards to show on this view. | |
cards: |
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
import asyncio | |
import logging | |
import sys | |
import argparse | |
import uuid | |
import time | |
from pytradfri import Gateway |