code: def set_dimmer(self, dimmer):
          
          command = {
              ATTR_START_ACTION: {
                      ATTR_DEVICE_STATE: self.state,
                      ROOT_START_ACTION: [{
                          ATTR_ID: self.raw[ATTR_ID],
                          ATTR_LIGHT_DIMMER: dimmer,
                          ATTR_TRANSITION_TIME: self.raw[ATTR_TRANSITION_TIME]
                      }, self.devices_dict]
                  }
              }
          return self.set_values(command)
docs: Set final dimmer value for task.