@service def state_goto_all_on(): log.info(f"********* ALL ON ***********") switch.turn_on(entity_id='switch.group_button_all') light.turn_on(entity_id='light.tradfri_bulb') @service def state_goto_all_off(): log.info(f"********* ALL OFF ***********") switch.turn_off(entity_id='switch.group_button_all') light.turn_off(entity_id='light.tradfri_bulb')