How to use the appdaemon.utils.now_is_between function in appdaemon

To help you get started, we’ve selected a few appdaemon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github home-assistant / appdaemon / appdaemon / hassapi.py View on Github external
def now_is_between(self, start_time_str, end_time_str):
        return utils.now_is_between(start_time_str, end_time_str, self.name)
github azogue / hass_appdaemon_apps / conf / apps / kodi_ambient_lights.py View on Github external
def _get_max_brightness_ambient_lights():
    if utils.now_is_between('09:00:00', '19:00:00'):
        return 200
    elif utils.now_is_between('19:00:00', '22:00:00'):
        return 150
    elif utils.now_is_between('22:00:00', '04:00:00'):
        return 75
    return 25
github azogue / hass_appdaemon_apps / conf / apps / kodi_ambient_lights.py View on Github external
def _get_max_brightness_ambient_lights():
    if utils.now_is_between('09:00:00', '19:00:00'):
        return 200
    elif utils.now_is_between('19:00:00', '22:00:00'):
        return 150
    elif utils.now_is_between('22:00:00', '04:00:00'):
        return 75
    return 25
github azogue / hass_appdaemon_apps / conf / apps / kodi_ambient_lights.py View on Github external
def _get_max_brightness_ambient_lights():
    if utils.now_is_between('09:00:00', '19:00:00'):
        return 200
    elif utils.now_is_between('19:00:00', '22:00:00'):
        return 150
    elif utils.now_is_between('22:00:00', '04:00:00'):
        return 75
    return 25