@service def hello_world(action=None, id=None): """hello_world example using pyscript.""" log.info(f"XXXXX THOMAS hello world: got action {action} id {id}") if action == "turn_on" and id is not None: light.turn_on(entity_id=id, brightness=255) elif action == "fire" and id is not None: event.fire(id, param1=12, pararm2=80)