File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/proxy/__pycache__/philips_hue.cpython-310.pyc
Back
o ;j�5 � @ s� d Z ddlZddlZddlZddlZddlmZm Z dgZ i Ze�e �ZG dd� d�Zdd� Zd d � Zdd� Zd d� Zd0dd�Zd1dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Z d,d-� Z!d.d/� Z"dS )2an Philips HUE lamps module for proxy. .. versionadded:: 2015.8.3 First create a new user on the Hue bridge by following the `Meet hue <https://www.developers.meethue.com/documentation/getting-started>`_ instructions. To configure the proxy minion: .. code-block:: yaml proxy: proxytype: philips_hue host: [hostname or ip] user: [username] � N)�CommandExecutionError�MinionErrorZphilips_huec @ s� e Zd ZdZddd�Zddd�ZdddgiZdd d giZddd�Zd dd�Z ddd�Z dddgiZddd�ZdddgiZ dddgiZdS )�Constz, Constants for the lamp operations. Tr )�on�transitiontimeF�xyg,Ԛ���?gu�V�?g��6�[�?g�,C���?� )Zhue�sati�c i�. g|�Pk��?g7�A`���?iH� g��e�c]�?gx$(~�?g[���<�?g�J�4�?N)�__name__� __module__�__qualname__�__doc__�LAMP_ON�LAMP_OFF�COLOR_WHITE�COLOR_DAYLIGHT� COLOR_RED�COLOR_GREEN�COLOR_ORANGE� COLOR_PINK� COLOR_BLUE�COLOR_YELLOW�COLOR_PURPLE� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/proxy/philips_hue.pyr 2 s r c C � dS )z Validate the module. Tr r r r r �__virtual__E s r c C sf | � di �� d�td<