from .switchbot_color_bulb import SwitchbotColorBulb
from .onoff_ability import OnOffAbility


class SwitchbotCeilingLight(SwitchbotColorBulb, OnOffAbility):
    """Switchbot Ceiling Light class"""

    def __init__(self, deviceId):
        """Constructor"""
        super().__init__(deviceId)

    def set_color(self, r, g, b):
        """Do nothing"""
        pass

    def get_power(self):
        """Returns ON/OFF state"""
        status = self.get_status()
        return status["power"]

    def get_brightness(self):
        """Returns the brightness value, range from 1 to 100"""
        status = self.get_status()
        return status["brightness"]

    def get_color_temperature(self):
        """Returns the color temperature value, range from 2700 to 6500"""
        status = self.get_status()
        return status["colorTemperature"]
